๐ Description
I am working with ABP Suite 9.2.1 and an ABP Commercial (Pro) project (latest version).
My solution consists of two separately deployed applications:
Auth Server / Admin Web
Public Web site
I want to use the Public Web application with its own UI, but still use ABPโs Account module and OpenIddict-based authentication.
What I want to achieve
Users should be able to register and log in from the Public site
After login, the user should be authenticated in the Public site
ICurrentUser should be populated
UI elements (Login / Profile / Logout) should change based on authentication state
โ What works
Registration from the Public site works successfully
User is created in the database
Account module pages are accessible
Auth Server works correctly on the Admin/Web side
โ What does NOT work
After registering, login does not authenticate the user
Login page opens, credentials are accepted, but:
Authentication cookie is not created or
ICurrentUser.IsAuthenticated is always false in Public Web
Header UI always shows โLoginโ instead of user info
ICurrentUser is always empty in Razor views
๐งช Steps to Reproduce
Create an ABP Commercial solution with ABP Suite 9.2.1
Enable Account Public Web and OpenIddict
Deploy:
Auth Server on: https://localhost:44349
Public Web on: https://localhost:44387
Configure Public Web to use Auth Server as Authority
Register a new user from Public Web
Try to log in from Public Web
Observe that login does not result in an authenticated user
Public Web and Auth Server are NOT the same application
Client is registered in OpenIddict
Using Authorization Code flow
โ Question
I followed the Account module and Public Web authentication examples, but login still does not work correctly.
What am I missing to properly enable authentication & authorization in the Public Web application?
Specifically:
Is there any additional configuration required for Public Web?
Should OpenIdConnect be manually configured?
Is there a recommended way to share authentication between Admin/Auth Server and Public Web?
Is there an official sample for separate Public Web authentication?
โน๏ธ Additional Info
ABP Suite: 9.2.1
ABP Commercial: Latest
UI: MVC / Razor
Authentication: OpenIddict
Deployment: Separate Public Web & Auth Server
Why (ICurentUser) CurentUser in page is null.