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?
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.
About IdentityServer4IdentityServer is a free, open source OpenID Connect and OAuth 2.0 framework for ASP.NET Core.
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.
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.
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",
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With