0
krushnakant created
- ABP Framework version: v4.4.3
- UI type: MVC
- DB provider: EF Core\
- Tiered (MVC) or Identity Server Separated (Angular): yes / no
- Exception message and stack trace:
- We are not able to login with public site.
- We have login page in admin site we follow identity service rules with public web site for login.
- We have two project Admin and Public. We use our Identity server policy in Admin section we are successfully login. But we are not able to login with public web site.
- we follow all trick like change setting on our both appsettings.json file and add our public link in Administration -> Identity Server -> Client -> Application Url ->CallbackUrl but it is not login with public site. This issue we facing on Publish site. In Development work ok but when we publish it is not working. so please give us step with example.
- Steps to reproduce the issue:"
As per your answer Do you use microservice template? I am not using Microsrvice Share authserver and public web application logs please.
we Admin application host on https://1.1.2.43:44343 and public application host on https://1.1.2.43:44344 in admin have login page we are trying call with our publish web site login it give internal server error.
discussion log file error please refer it
Initialized all ABP modules.
2022-01-28 10:40:44.233 +05:30 [INF] Application started. Press Ctrl+C to shut down.
2022-01-28 10:40:44.233 +05:30 [INF] Hosting environment: Production
2022-01-28 10:40:44.234 +05:30 [INF] Content root path: D:\IISPublish\PVPublic
2022-01-28 10:40:44.256 +05:30 [INF] Request starting HTTP/2 GET https://192.168.2.43:44344/ - -
2022-01-28 10:40:48.612 +05:30 [INF] Executing endpoint '/Index'
2022-01-28 10:40:48.650 +05:30 [INF] Route matched with {page = "/Index", action = "", controller = "", area = ""}. Executing page /Index
We follow under steps
**Step 1 In admin web site appsetting.json file configuration setting we configuration this**
"App": {
"SelfUrl": "https://1.1.2.43:44343"
},
"AuthServer": {
"Authority": "https://1.1.2.43:44343",
"RequireHttpsMetadata": "true"
},
** Step 2 In public web site appsetting.json file configuration setting we configuration this **
"App": {
"SelfUrl": "https://1.1.2.43:44344"
},
"AuthServer": {
"Authority": "https://1.1.2.43:44343",
"RequireHttpsMetadata": "false",
"ClientId": "SGLPV_Web_Public_Demo",
"ClientSecret": "1q2w3e*"
},
**Step 3 Register clients**
Administration -> Identity resources -> Clients -> Create a New client
we are creating New client name is SGLPV_Web_Public_Demo
**Step 4 Add callbackurl with Application Urls Menu -> callback**
i create callback url like
https://1.1.2.43:44344/signin-oidc
**Step 5 Add our login url in our public web site**
href="~/Account/Login"
so what we miss about calling login page with public site please guide us.
1 Answer(s)
-
0
Do you use microservice template? Share authserver and public web application logs please.