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

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

4 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.