simpleAngularAzureB2C | simple Angular app uses msal.js to login users | Azure library

 by   Gimly JavaScript Version: Current License: MIT

kandi X-RAY | simpleAngularAzureB2C Summary

kandi X-RAY | simpleAngularAzureB2C Summary

simpleAngularAzureB2C is a JavaScript library typically used in Cloud, Azure, Angular applications. simpleAngularAzureB2C has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

This simple Angular app uses msal.js to login users through Azure AD B2C
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              simpleAngularAzureB2C has a low active ecosystem.
              It has 8 star(s) with 6 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 2 open issues and 0 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of simpleAngularAzureB2C is current.

            kandi-Quality Quality

              simpleAngularAzureB2C has no bugs reported.

            kandi-Security Security

              simpleAngularAzureB2C has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              simpleAngularAzureB2C is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              simpleAngularAzureB2C releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of simpleAngularAzureB2C
            Get all kandi verified functions for this library.

            simpleAngularAzureB2C Key Features

            No Key Features are available at this moment for simpleAngularAzureB2C.

            simpleAngularAzureB2C Examples and Code Snippets

            No Code Snippets are available at this moment for simpleAngularAzureB2C.

            Community Discussions

            Trending Discussions on simpleAngularAzureB2C

            QUESTION

            Authentication on angular spa using msal.js
            Asked 2017-Dec-07 at 03:49

            my angular app has 1000s unique routes and users should be able to click on login button from any of those pages. Have implemented msal.js basing on this sample :

            https://github.com/Gimly/simpleAngularAzureB2C/blob/master/src/app/authentication.service.ts

            I am getting following error when calling login method:

            AADB2C90006:+The+redirect+URI+'http://localhost:39579/unique-uri'+provided+in+the+request+is+not+registered+for+the+client+id+

            Is there a way to get around this?

            Thanks!

            ...

            ANSWER

            Answered 2017-Dec-07 at 03:49

            By default, the Msal.UserAgentApplication constructor sets the "redirect_uri" request parameter to the current URL, which doesn't scale.

            The Msal.UserAgentApplication constructor accepts a "redirectUri" options argument that enables the "redirect_uri" request parameter to be set to a fixed URL (e.g. "http://localhost:39579/authcallback") that is registered for the Azure AD B2C application.

            Before MSAL generates the authentication request to Azure AD B2C, it writes the current URL (e.g., "http://localhost:39579/unique-uri") to storage and then redirects the user agent to the authentication endpoint.

            At the "/authcallback" endpoint, you must create a new instance of Msal.UserAgentApplication, to handle the authentication response.

            After MSAL verifies the authentication response from Azure AD B2C, it reads the original URL from storage and then returns the user agent to this URL.

            Source https://stackoverflow.com/questions/47686723

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install simpleAngularAzureB2C

            First, get the source code using git. Then, go to the folder where the code was downloaded to and run npm install. Open the source code (for example using Visual Studio Code) and modify the environments/environment.ts file to match your own Azure B2C subscription. Don't forget to add the URL and port on which you'll be running the sample in the application properties as a Reply URL, otherwise it won't work. You can also just run the sample with the fabrikamb2c tenant, but make sure to run the app with the port 6420, as it's the reply URL configured for that clientID.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/Gimly/simpleAngularAzureB2C.git

          • CLI

            gh repo clone Gimly/simpleAngularAzureB2C

          • sshUrl

            git@github.com:Gimly/simpleAngularAzureB2C.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link