Hi @ismcagdas Already tried your answer in https://support.aspnetzero.com/QA/Questions/5935
Configured Identity and OpenId but not working
Aim is to login from login.domain.com angular project (communicates with api project http://loginapi.domain.com identityserver) after login user is redirected to another subdomain accounts.domain.com angular project (communicates with api project http://accountsapi.domain.com openid) but user can't able to access it.
identityserver configuration done for loginapi.domain.com
"IdentityServer": { "IsEnabled": "true", "Authority": "http://loginapi.domain.com/", "ApiName": "default-api", "ApiSecret": "secret",
openid configuration done for accountsapi.domain.com
"OpenId": { "IsEnabled": "true", "ClientId": "demo", "Authority": "http://loginapi.domain.com/", "LoginUrl": "http://loginapi.domain.com/api/TokenAuth/Authenticate" }, how can i acheive this? I am new to OpenId connect please help.
Already tried your answer in https://support.aspnetzero.com/QA/Questions/5935
Configured Identity and OpenId but not working
Aim is to login from login.domain.com angular project (communicates with api project http://loginapi.domain.com identityserver) after login user is redirected to another subdomain accounts.domain.com angular project (communicates with api project http://accountsapi.domain.com openid) but user can't able to access it.
identityserver configuration done for loginapi.domain.com
"IdentityServer": {
"IsEnabled": "true",
"Authority": "http://loginapi.domain.com/",
"ApiName": "default-api",
"ApiSecret": "secret",
openid configuration done for accountsapi.domain.com
"OpenId": {
"IsEnabled": "true",
"ClientId": "demo",
"Authority": "http://loginapi.domain.com/",
"LoginUrl": "http://loginapi.domain.com/api/TokenAuth/Authenticate"
},
how can i acheive this? I am new to OpenId connect please help.
Hi,
Just enabled identity server in api.
IsEnabled": "true", "Authority": "http://localhost: 22743 server is running /",
Server and client root address
"ServerRootAddress": "http://localhost:22742/",
"ClientRootAddress": "http://localhost:4200/",
but when trying to login request is posting to http://localhost:22742/ for validating then how identity works. why is it so? 22743 server is running in parallel
Our Application is divided into three modules with three subdomains we want to communite authentication to diffrent subdomains how can we acheive this using Angular Template.
eg: Login will be done from login.maindomain.com then a screen with different module appears if user clicks on accounts button user will be redirected to accounts.maindomain.com with out relogin. Database is same for all domains.