खुला हुआ बंद किया हुआ

AngularUI: Single Sign On (SSO) #679


User avatar
0
edelivery बनाया था

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 उत्तर (ओं)
  • User Avatar
    0
    alper बनाया था
    सहायता दल Director

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

  • User Avatar
    0
    edelivery बनाया था

    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 बनाया था
    सहायता दल 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 बनाया था

    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 v8.2.0-preview Updated on मार्च 25, 2024, 15:11