msal-angular | Angular MSAL Wrapper Module

 by   benbaran TypeScript Version: 1.0.3 License: MIT

kandi X-RAY | msal-angular Summary

kandi X-RAY | msal-angular Summary

msal-angular is a TypeScript library typically used in Angular applications. msal-angular has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Angular MSAL Wrapper Module
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              msal-angular has a low active ecosystem.
              It has 14 star(s) with 16 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 11 open issues and 2 have been closed. On average issues are closed in 107 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of msal-angular is 1.0.3

            kandi-Quality Quality

              msal-angular has 0 bugs and 0 code smells.

            kandi-Security Security

              msal-angular has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              msal-angular code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              msal-angular 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

              msal-angular releases are not available. You will need to build from source code and install.
              Installation instructions are not available. 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 msal-angular
            Get all kandi verified functions for this library.

            msal-angular Key Features

            No Key Features are available at this moment for msal-angular.

            msal-angular Examples and Code Snippets

            No Code Snippets are available at this moment for msal-angular.

            Community Discussions

            QUESTION

            Declared InjectionToken cannot be found on compile of Angular application
            Asked 2022-Apr-08 at 03:16

            Im trying to provide a global configuration, which is dependent on the user's webbrowser, by using an InjectionToken. However the declared const cannot be found in the source code on compiling the application. I have seen this pattern work before(1), but I am not sure what I am doing differently. Below is an abstract of my code.

            ...

            ANSWER

            Answered 2022-Apr-08 at 03:16

            To Create injection token you have to instantiate

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

            QUESTION

            MSAL - MsalGuard on Redirect URI - getting into redirect loop
            Asked 2022-Mar-30 at 05:11

            I'm implementing msal in my angular application and I'm using msal-v1 library.

            I have taken angular-7 sample from the documented samples and tried implementing the below code in my enterprise application.

            I have added popup as false in app.module.ts

            ...

            ANSWER

            Answered 2022-Mar-30 at 05:11

            I have discussed the same issue in the github(msal-v1) forum and have found a alternate solution by setting a new route without the MsalGuard but to the same HomeComponent.

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

            QUESTION

            Angular routing with Msal Azure AD integration
            Asked 2022-Feb-03 at 08:02

            I am on Angular 13, integrated with Azure AD using MSAL. My issue is as soon as the user successfully logs in , the logincomponent is not displayed. But when I do a page refresh then the login component displays. How do I get login component to display as soon as the user signs in.

            On debugging realized, on signing in when AuthGaurd kicks in , this this.msalsvc.instance.getActiveAccount() returns a null even though sign in was successful

            This is my app routing,

            ...

            ANSWER

            Answered 2022-Feb-03 at 08:02

            After calling login(), and ensuring it completes successfully, navigate to the correct path using the Router service. This will cause the auth guard to fire after logging in.

            In order to ensure login completed, you should return the observable created in the login() function.

            In common.service.ts:

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

            QUESTION

            Issue logging into Azure B2C Angular application using @azure/msal-angular
            Asked 2022-Feb-01 at 19:34

            I'm having an odd error logging my app into B2C using auth code flow with PKCE using the @azure/msal-angular library. I'm redirecting back to the B2C login, get redirected back to my app, my app successfully gets a token back from the token api but then a JS error is logged and prevents my app from continuing to load. Here is the console output:

            ...

            ANSWER

            Answered 2022-Feb-01 at 19:34

            The solution to this was for me to add the

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

            QUESTION

            Does the @azure/msal-angular package automatically refresh token?
            Asked 2022-Jan-26 at 08:38

            I'm trying to move an existing angular 9 app from using an implicit flow with azure B2C to using the new auth code grant flow with PKCE. I'm using the @azure/msal-angular package and almost have it working. Just waiting on our identity management team to enable some settings.

            But I'm wondering if this package automatically refreshes the bear token with the refresh token that we get in the token response? Or do I have to do some manual magic to get the refresh to happen? I'm not finding anything in this package's documentation pertaining to refresh tokens, wondering if anybody out there is using this and knows what the default behavior is with this package as it pertains to the use of the refresh token.

            @azure/msal-angular

            ...

            ANSWER

            Answered 2022-Jan-26 at 08:38

            Yes, it automatically handles the token refresh.

            From the (Microsoft Documentation):

            Acquiring tokens silently (from the cache)

            MSAL maintains a token cache (or two caches for confidential client applications) and caches a token after it's been acquired. In many cases, attempting to silently get a token will acquire another token with more scopes based on a token in the cache. It's also capable of refreshing a token when it's getting close to expiration (as the token cache also contains a refresh token).

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

            QUESTION

            Cannot call method in my service inside my component in Angular
            Asked 2022-Jan-14 at 22:18

            I am Trying to make a shared download as pdf method in my service file. But when i try to call my method in my app component it gives 'Cannot read properties of undefined (reading 'nativeElement')' error. The Download method works perfectly when I call it directly in my app component. #here is my download.service.ts#

            ...

            ANSWER

            Answered 2022-Jan-14 at 22:18

            I would suggest to remove the ViewChild located inside your service and to add an addtional parameter to your downlodpdf method of type ElementRef. So you could pass necessarry ElementRefs to the service directly.

            @ViewChild is only supported for classes decorated with @Component or @Directive. You can read more inside the angular @ViewChild documentation.

            download.service.ts

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

            QUESTION

            Syntax error Invalid Regular expression angular typescript
            Asked 2021-Nov-28 at 14:19

            i am getting this error and i am stuck cant find where is the syntax problem

            core.mjs:6495 ERROR SyntaxError: Invalid regular expression: /https://graph.microsoft.com/v1.0/communications/callRecords/getPstnCalls(fromDateTime=2020-01-30,toDateTime=2020-01-30/: Unterminated group at new RegExp () at Function.StringUtils.matchPattern (StringUtils.js:122) at azure-msal-angular.js:425 at Array.forEach () at MsalInterceptor.matchResourcesToEndpoint (azure-msal-angular.js:422) at MsalInterceptor.getScopesForEndpoint (azure-msal-angular.js:404) at MsalInterceptor.intercept (azure-msal-angular.js:336) at HttpInterceptorHandler.handle (http.mjs:1415) at HttpXsrfInterceptor.intercept (http.mjs:2018) at HttpInterceptorHandler.handle (http.mjs:1415)

            ...

            ANSWER

            Answered 2021-Nov-28 at 14:19

            You have missed to close the parentheses in the queryUrl value. To correct this, your queryUrl value must be like:

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

            QUESTION

            Azure AD B2C keeps providing v1 tokens not v2 tokens
            Asked 2021-Nov-24 at 12:32

            Azure's AD B2C keeps issuing v1 tokens even though v2 tokens are configured in the manifest of the SPA app that's registered:

            ...

            ANSWER

            Answered 2021-Nov-24 at 12:32

            Azure AD B2C only ever used the endpoint when making the OIDC Authentication requests with v2.0, a v1.0 never existed. So it always has issued v1.0 tokens (v2 is the first and only version). This is completely normal.

            Only Azure AD had v1.0 and v2.0 OIDC endpoint, and therefore maps based off of accessTokenAcceptedVersion.

            You don't need to mess with this property in AAD B2C application registrations unless you have a SAML relying party.

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

            QUESTION

            Unable to click to the button to redirect and connect via microsoft account in my angular application
            Asked 2021-Nov-19 at 14:17

            I built an angular application and I wanted to let users connect to it only via microsoft account using @azure/msal-angular and @azure/msal-browser packages.

            I created a component to handle the connection called login

            this is login.component.ts

            ...

            ANSWER

            Answered 2021-Nov-19 at 14:17
            export function MSALInstanceFactory(): IPublicClientApplication {
              return new PublicClientApplication({
                auth: {
                  clientId: '0d6bd648-96d2-451b-9b06-5e087ec9a11c', // Application (iSell+) id
            
                  // I had to put it that way, not just the tenantID 
                  authority: 'https://login.microsoftonline.com/tenantID', // Directory (tenant) id
            
            
                  redirectUri: 'http://localhost:4200', // Need to be changed when in production
                  // clientId: 'de55bfa3-1bc6-450a-b2b6-83b38186af92',
                  // redirectUri: 'http://localhost:4200',
                }
              })
            }
            

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

            QUESTION

            msal-angularv2.0.4 IE11 not working with promise polyfill
            Asked 2021-Oct-26 at 07:25

            I believe we have everything mentioned in https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-angular/docs/v2-docs/ie-support.md

            We have included a promise polyfill at the top of our index.html:

            ...

            ANSWER

            Answered 2021-Oct-26 at 07:25

            For anyone having similar issues:

            We were using MSAL-angular v2.0.4 with Angular 6. Having downgraded to MSAL-angular v1.4.0, IE11 works fine.

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install msal-angular

            You can download it from GitHub.

            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
            Install
          • npm

            npm i msal-angular

          • CLONE
          • HTTPS

            https://github.com/benbaran/msal-angular.git

          • CLI

            gh repo clone benbaran/msal-angular

          • sshUrl

            git@github.com:benbaran/msal-angular.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