You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First it fetches the configuration + public key via jwks url.
Then it calls the authorization server and the authorization server is redirecting me to the second component (see below).
My second component (exposed by my redirect-url) is :
login(): void {
this.oauthService.tryLogin();
}
And it doesn't work, because I need to do a loadDocument first in this function.
My question is: Do I need to call twice the endpoint for configuration ? Is there a way to avoid that ?
Thanks
The text was updated successfully, but these errors were encountered:
You need to load the discovery document once per loading of your application.
Since initCodeFlow will perform a redirect cycle (as per the spec) you will go to the auth server and get sent back to your own app. It will (should) then load the disco document again, indeed.
Hi,
I need help, perhaps I've done something wrong.
Describe
I have tried to use this library and I have found that it is calling twice the endpoint for fetching the configuration.
Reproduce
My first component is :
First it fetches the configuration + public key via jwks url.
Then it calls the authorization server and the authorization server is redirecting me to the second component (see below).
My second component (exposed by my redirect-url) is :
And it doesn't work, because I need to do a loadDocument first in this function.
My question is: Do I need to call twice the endpoint for configuration ? Is there a way to avoid that ?
Thanks
The text was updated successfully, but these errors were encountered: