Ends in:
7 DAYS
18 HRS
20 MIN
44 SEC
Ends in:
7 D
18 H
20 M
44 S
Open Closed

AngularUI: Single Sign On (SSO) #679


User avatar
0
edelivery created

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)
  • User Avatar
    0
    alper created
    Support Team Director

    seems like an Identity Server misconfiguration. check your database table IdentityServerClientRedirectUris

  • User Avatar
    0
    edelivery created

    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

  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    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?

  • User Avatar
    0
    edelivery created

    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

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06