I have the following client configured in IdentityServer:
new Client
{
ClientName = "My web application",
Enabled = true,
ClientId = "mywebapp",
ClientSecrets = new List<ClientSecret>
{
new ClientSecret("somesecret")
},
Flow = Flows.Hybrid,
ClientUri = "https://app.mydomain.com",
RedirectUris = new List<string>
{
"oob://localhost/wpfclient",
"http://localhost:2672/",
"https://app.mydomain.com"
}
}
And it is hosted on, say https://auth.mydomain.com/core.
An attempt to change the MVC OWIN Client (Hybrid) client to enter the specified authentication server has been Startup.cschanged ClientId, ClientSecretand RedirectUrito match the client settings in IdSrv. Now, when I try to go to a page that requires authorization, I am redirected to the IdentityServer URL. When I log in, the breakpoint hits the notification AuthorizationCodeReceivedin the client Startup.csand then goes into the loop. Browser status shows:
Waiting for localhost...
Waitnig for auth.mydomain.com...
Waiting for localhost...
Waitnig for auth.mydomain.com...
...
etc. and never completes the login. Why is this happening? Please, help.
Thank!