scottbrady91 / Angular4-OidcClientJs-Example

Code from scottbrady91.com/Angular
https://www.scottbrady91.com/Angular/SPA-Authentiction-using-OpenID-Connect-Angular-CLI-and-oidc-client
71 stars 60 forks source link

get new access token without redirect to authorization endpoint #7

Closed meysam7289 closed 5 years ago

meysam7289 commented 5 years ago

How do I get a new Token from Token Endpoint after expiration of the token without going to the Authorization Endpoint and then redirect to Callback Endpoint? (so that the user does not understand it)

scottbrady91 commented 5 years ago

Check out silent refresh. This works for both implicit and authorization code flows: https://www.scottbrady91.com/OpenID-Connect/Silent-Refresh-Refreshing-Access-Tokens-when-using-the-Implicit-Flow