- 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)
-
0
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.
-
0
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! -
0
PreConfigure<OpenIddictServerBuilder>
is global. AndOpenId > Application
is for each application/client. -
0
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!
-
0
hi
You can create a new question and share your case details.
Thanks