ABP Framework version: v3.3.0 UI type: Angular Tiered (MVC) or Identity Server Seperated (Angular): yes Hi All I have seperate module with differrent link and i want to use single sign on to login. I used angular-oauth2-oidc and call function loadDiscoveryDocumentAndLogin to skip the Login Form but it return to error page like This
4 Answer(s)
-
0
seems like an Identity Server misconfiguration. check your database table
IdentityServerClientRedirectUris
-
0
Hi alper
My purpose when using angular-oauth2-oidc is to want to get token after login. Please let me know how to get tokens
-
0
Hello @edelivery,
My purpose when using angular-oauth2-oidc is to want to get token after login. Please let me know how to get tokens
I assume you mean getting AccessToken. You will already have it stored in local storage after login completed but your authentication flow is blocked because of invalid redirect url which is related with your client configuration as @alper mentioned above.
Can you clarify what exactly you want to achieve?
-
0
Hi gterdem my function to get token is:
private configureWithNewConfigApi() { this.oauthService.configure(this.authCodeFlowConfig); this.oauthService.tokenValidationHandler = new JwksValidationHandler(); this.oauthService.loadDiscoveryDocumentAndTryLogin(); AppConsts.token = this.oauthService.authorizationHeader(); }
so I cant get this token because my web redirect to error. I added config to IdentityServerClientRedirectUris and it's worked ok thank you