Ends in:
4 DAYS
19 HRS
16 MIN
44 SEC
Ends in:
4 D
19 H
16 M
44 S
Open Closed

How to integrate SSO Integration #8204


User avatar
0
jonty created
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace: none
  • Steps to reproduce the issue: Hello!

I’ve been exploring ABP.IO's support resources and came across these discussions:

How to SSO Integration Using OAuth2/OpenID Connect in ABP.IO Microservices How to Authenticate External SSO Token with Admin APIs Now, I have an existing Angular client and I’m planning to introduce a new Vue client. I aim to implement a Single Sign-On (SSO) where logging into one client allows access to the other without needing to log in again.

Considering two potential scenarios where:

Both clients are under the same domain (e.g., xxx.com for Angular and xxx.com/vue for Vue). Each client is hosted on a separate subdomain (e.g., angular.xxx.com and vue.xxx.com). Could you advise on how to configure the authorization service to support SSO in these setups? Does ABP natively support such configurations for SSO?

Thank you!


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Our angular template project supports the OAuth2(OpenIddict).

    You can use an oauth2 library in your vue app.

    You only need to login authserver once.

  • User Avatar
    0
    jonty created

    ok it works, thanks for the reply, but regarding the validity of the token I should use:

    PreConfigure<OpenIddictServerBuilder>(builder =>
          {
              builder
                  .SetAccessTokenLifetime(TimeSpan.FromDays(1))
                  .SetIdentityTokenLifetime(TimeSpan.FromDays(1));
          });
    

    still using OpenId > Application to set the token lifetime, I don't want frequent logins, I've extended the IdentitySessionCleanupWorker CleanupPeriod,can you explain? Thanks!

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    PreConfigure<OpenIddictServerBuilder> is global. And OpenId > Application is for each application/client.

  • User Avatar
    0
    jonty created

    Hi, I'm having the same problem deploying my application using docker, nginx: https://abp.io/support/questions/7180/Deploying-an-ABP-tiered-project-to-mutliple-docker-containers Can you open or share how you solved it? Or need me to create a new issue, thank you!

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can create a new question and share your case details.

    Thanks

Made with ❤️ on ABP v9.1.0-preview. Updated on November 26, 2024, 12:49