Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Silent Token Request #357

Open
SebastianA opened this issue Jan 10, 2023 · 0 comments
Open

Silent Token Request #357

SebastianA opened this issue Jan 10, 2023 · 0 comments

Comments

@SebastianA
Copy link

Hi,
I am using this library with Azure AD and have two app registrations: one is a application that needs to call an API in another app. I need to use Bearer Authentication and obtain an access token with a specific scope in order to call the API. In my SPA, which is built with Angular and uses MSAL, I am trying to acquire a silent access token with the required scope using the acquireTokenSilent method.

In a SPA in Angular with MSAL it looks like that and worked fine:

this.authService.acquireTokenSilent({
        scopes: ['api://00000client_id00000/access_as_user'] // this is the required scope for api app
      }).subscribe(result => {
        // --> result.accessToken;
      });

Is there a way I could solve this problem using the Jumbojett library?

Thanks
Sebastian

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant