Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

How to get refresh token using aquiretoken function ? #102

Open
sandipbhavsar opened this issue Nov 13, 2018 · 3 comments
Open

How to get refresh token using aquiretoken function ? #102

sandipbhavsar opened this issue Nov 13, 2018 · 3 comments

Comments

@sandipbhavsar
Copy link

I am using "adal-angular4": "3.0.16" version.

Here is my configuration ::

private config = {
    tenant: environment.appId,     // tenantId.
    clientId: environment.clientId,
    redirectUri: environment.origin + '/auth-callback', // callback URI.
    postLogoutRedirectUri: environment.origin,
    cacheLocation: 'localStorage',
};

What I need to pass to this.adalService.acquireToken(resource) function as a resource ? Is auto-renewal option available ?

@chintandbhatt-zz
Copy link

If you are using implicit-flow than you just need to pass your environment.clientId.

@sandipbhavsar
Copy link
Author

@chintandbhatt it will be helpfull if you can share sample

@geerzo
Copy link
Collaborator

geerzo commented Dec 18, 2018

You shouldn't have to call that method at all if you are using the interceptor. Can you share your example?

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

No branches or pull requests

3 participants