Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Troubleshooting Identity Server 4

I am using Identity Server 4 for authentication. I have MVC client. Few days ago i was able to authenticate successfully. But recently i made some changes in Identity Server project which broke something. I am getting

unauthorized_client The client application is not known or is not authorized.

I tried all the possible fixes but couldn't fix it. Is there any way i can debug the code. I could see that the call was made to /connect/authorize endpoint and calls are going to IScopeStore.FindScopesAsync and IClientStore.FindClientByIdAsync and i verified it has all proper AllowedScopes.

Can anyone tell me how do i troubleshoot these kind of issues with Identity Server 4. Also, i am interested to know the execution flow. What IDSvr endpoints are called and when?

like image 478
Venky Avatar asked Sep 21 '16 08:09

Venky


People also ask

What will happen to Identity server 4?

IdentityServer will be rebranded as Duende IdentityServer. IdentityServer4 support will last until the end of life of . NET Core 3.1 that means till November 2022. In that way, Duende provides new documentation for the fifth service version.

Is Identity server 4 still free?

About IdentityServer4IdentityServer is a free, open source OpenID Connect and OAuth 2.0 framework for ASP.NET Core.

What is IDS4?

IDS4 is a system of networked microcomputers located in ATCTs, TRACONs, AFSSs, and ARTCCs that displays static and real-time, rapidly changing weather, operational support, and administrative information to air traffic control personnel.

What is the difference between identity and identity server?

Identity Server is a centralized OAuth/OIDC token server. Identity is an API for managing user accounts. Identity Server might use Identity to manage accounts.


1 Answers

your problem can be anything. enable logging to the console and you can find out what it is. Identity Server 4 by default uses the asp.net core logger provider to do its internal logging.

in your Startup.cs within the Configure(IApplicationBuilder app, ILoggerFactory loggerFactory) method. Add Console logging by loggerFactory.AddConsole(LogLevel.Trace); and make sure that you include the logger extension package in your project.json "Microsoft.Extensions.Logging.Console": "1.0.0",.

like image 183
Lutando Avatar answered Oct 24 '22 03:10

Lutando