and I set IdentityModelEventSource.ShowPII is true.
and getting logs Message: An error was encountered while handling the remote login. Message contains error: 'invalid_client', error_description: 'Client authentication failed', error_uri: 'error_uri is null'
Your question has nothing to do with this repository: you're using the OIDC handler developed and maintained by Microsoft, so you should ask the ASP.NET team: https://github.com/dotnet/aspnetcore
tried linkedin login in asp.net core. Added below code in startup
.AddOpenIdConnect(Configuration.GetSection("ExternalLoginConfiguration:LinkedInConfiguration:Scheme").Value, "linkedin", options => { options.SignInScheme = "Identity.External"; options.RequireHttpsMetadata = false; options.ClientId = Configuration.GetSection("ExternalLoginConfiguration:LinkedInConfiguration:ClientId").Value; options.ClientSecret = Configuration.GetSection("ExternalLoginConfiguration:LinkedInConfiguration:ClientSecret").Value; options.CallbackPath = Configuration.GetSection("ExternalLoginConfiguration:LinkedInConfiguration:CallbackPath").Value; options.Authority = "https://www.linkedin.com/"; options.ResponseType = OpenIdConnectResponseType.Code; options.Configuration=new OpenIdConnectConfiguration(); options.Configuration.AuthorizationEndpoint="https://www.linkedin.com/oauth/v2/authorization"; options.Configuration.TokenEndpoint="https://www.linkedin.com/oauth/v2/accessToken"; options.Scope.Clear(); options.Scope.Add("openid"); options.Scope.Add("email"); options.Scope.Add("profile"); options.GetClaimsFromUserInfoEndpoint = true; options.SaveTokens = true; options.Events = new OpenIdConnectEvents() { OnRedirectToIdentityProvider = (ctx) => { // ctx.ProtocolMessage.SetParameter("access_type", "offline"); string username = ctx.Properties.Items["username"];
and I set IdentityModelEventSource.ShowPII is true.
and getting logs Message: An error was encountered while handling the remote login. Message contains error: 'invalid_client', error_description: 'Client authentication failed', error_uri: 'error_uri is null'