Thank you for pointing to that configuration I has been resolved by changing to https through "Authority": "http{authServerEndpoint}",
"AuthServer": { "Authority": "http{authServerEndpoint}", "RequireHttpsMetadata": "false" }, "RemoteServices": { "Default": { "BaseUrl": "https{internalgatewayendpoint}", "UseCurrentAccessToken": "false" } }, "IdentityClients": { "Default": { "GrantType": "client_credentials", "ClientId": "{name}_AdministrationService", "ClientSecret": "***", "Authority": "http{authServerEndpoint}", "Scope": "IdentityService" } },
Hello, I am getting an exception while click on permission option of particular user. This is due http redirection but I have followed Deployment guid for Microservices architecture with k8s Ingress controller configuration. https://docs.abp.io/en/commercial/latest/guides/identityserver-deployment#kubernetes
Could not retrieve the OpenId Connect discovery document! ErrorType: Exception. Error: Error connecting to http{endpoint}. HTTPS required.
Thank you all of you Seems working fine after upgrading to abp version to 5.2.0
@gterdem Please guide us to resolve or May i go through upgrade the version?
@enes.koroglu
Can you give more information about:
- From what version to 4.4.4 did you update your application?
- Do you get the same error above when you check your backend logs for 500 error?
- What is your deployment environment? IIS, docker, kubernetes etc?
@ronaksbhavsar
- You are using directly ABP 4.4.4 angular UI with separated IdentityServer, not updated right? Can you confirm?
- You are running IdentityServer on Kubernetes, can you confirm?
Did you tried to update (or downgrade) your application to see if it occurs again?
I am using ABP 4.4.4 and running Identity server in Kubernetes I never upgraded or downgraded version
Thanks for update
Hello Support team,
Kindly check this ticket as i have created related to this one and provide me a help.
https://github.com/DuendeSoftware/Support/issues/19
Added new issue in Github Identtiyserver4
https://github.com/IdentityServer/IdentityServer4/issues/5443
Same exception again even after following Deployment Guide. Please help me to resolve it.
2022-03-31 17:47:39
[12:17:39 INF] CORS policy execution successful.
2022-03-31 17:47:39
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
2022-03-31 17:47:39
--- End of stack trace from previous location ---
2022-03-31 17:47:39
at iDMHome.AuthServer.iDMHomeAuthServerModule.<>c.<<OnApplicationInitialization>b__2_1>d.MoveNext() in /home/vsts/work/1/s/apps/auth-server/src/iDMHome.AuthServer/iDMHomeAuthServerModule.cs:line 179
2022-03-31 17:47:39
--- End of stack trace from previous location ---
2022-03-31 17:47:39
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
2022-03-31 17:47:39
at Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
2022-03-31 17:47:39
at Prometheus.HttpMetrics.HttpInProgressMiddleware.Invoke(HttpContext context)
2022-03-31 17:47:39
at Prometheus.HttpMetrics.HttpRequestCountMiddleware.Invoke(HttpContext context)
2022-03-31 17:47:39
at Prometheus.HttpMetrics.HttpRequestDurationMiddleware.Invoke(HttpContext context)
2022-03-31 17:47:39
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
2022-03-31 17:47:39
--- End of stack trace from previous location ---
2022-03-31 17:47:39
at Microsoft.AspNetCore.Builder.ApplicationBuilderAbpJwtTokenMiddlewareExtension.<>c__DisplayClass0_0.<<UseJwtTokenMiddleware>b__0>d.MoveNext()
2022-03-31 17:47:39
--- End of stack trace from previous location ---
2022-03-31 17:47:39
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
2022-03-31 17:47:39
at Volo.Abp.AspNetCore.MultiTenancy.MultiTenancyMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
2022-03-31 17:47:39
--- End of stack trace from previous location ---
2022-03-31 17:47:39
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
2022-03-31 17:47:39
at Volo.Abp.AspNetCore.Serilog.AbpSerilogMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
2022-03-31 17:47:39
--- End of stack trace from previous location ---
2022-03-31 17:47:39
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
2022-03-31 17:47:39
at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
2022-03-31 17:47:39
at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
2022-03-31 17:47:39
--- End of stack trace from previous location ---
2022-03-31 17:47:39
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
2022-03-31 17:47:39
at Volo.Abp.AspNetCore.Uow.AbpUnitOfWorkMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
2022-03-31 17:47:39
at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context)
2022-03-31 17:47:39
at Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.<Invoke>g__InvokeCoreAwaited|15_0(HttpContext context, Task1 policyTask) 2022-03-31 17:47:39 at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) 2022-03-31 17:47:39 at IdentityServer4.Hosting.MutualTlsEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes) 2022-03-31 17:47:39 at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService) 2022-03-31 17:47:39 at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService) 2022-03-31 17:47:39 at IdentityServer4.Endpoints.DiscoveryEndpoint.ProcessAsync(HttpContext context) 2022-03-31 17:47:39 at IdentityServer4.ResponseHandling.DiscoveryResponseGenerator.CreateDiscoveryDocumentAsync(String baseUrl, String issuerUri) 2022-03-31 17:47:39 at System.Collections.Generic.List
1.InsertRange(Int32 index, IEnumerable1 collection) 2022-03-31 17:47:39 at System.Linq.Enumerable.SelectArrayIterator
2.MoveNext()
2022-03-31 17:47:39
at x973ltTuyr0iNFtkVC2.uoxoRDTMlI1EVNyvYXa.O5QlTBeshI(Int32 )
2022-03-31 17:47:39
System.Exception: Exception of type 'System.Exception' was thrown.
2022-03-31 17:47:39
[12:17:39 ERR] An unhandled exception has occurred while executing the request.
2022-03-31 17:47:39
at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService)
2022-03-31 17:47:39
at IdentityServer4.Endpoints.DiscoveryEndpoint.ProcessAsync(HttpContext context)
2022-03-31 17:47:39
at IdentityServer4.ResponseHandling.DiscoveryResponseGenerator.CreateDiscoveryDocumentAsync(String baseUrl, String issuerUri)
2022-03-31 17:47:39
at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable
1 collection)
2022-03-31 17:47:39
at System.Linq.Enumerable.SelectArrayIterator2.MoveNext() 2022-03-31 17:47:39 at x973ltTuyr0iNFtkVC2.uoxoRDTMlI1EVNyvYXa.O5QlTBeshI(Int32 ) 2022-03-31 17:47:39 System.Exception: Exception of type 'System.Exception' was thrown. 2022-03-31 17:47:39 [12:17:39 FTL] Unhandled exception: Exception of type 'System.Exception' was thrown. 2022-03-31 17:47:39 [12:17:39 INF] {"Details": "System.Exception: Exception of type 'System.Exception' was thrown.\n at x973ltTuyr0iNFtkVC2.uoxoRDTMlI1EVNyvYXa.O5QlTBeshI(Int32 )\n at System.Linq.Enumerable.SelectArrayIterator
2.MoveNext()\n at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable
1 collection)\n at IdentityServer4.ResponseHandling.DiscoveryResponseGenerator.CreateDiscoveryDocumentAsync(String baseUrl, String issuerUri)\n at IdentityServer4.Endpoints.DiscoveryEndpoint.ProcessAsync(HttpContext context)\n at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService)", "Category": "Error", "Name": "Unhandled Exception", "EventType": "Error", "Id": 3000, "Message": "Exception of type 'System.Exception' was thrown.", "ActivityId": "0HMGJ1M8AP6KC:00000013", "TimeStamp": "2022-03-31T12:17:39.0000000Z", "ProcessId": 1, "LocalIpAddress": "::ffff:10.244.2.68:80", "RemoteIpAddress": "::ffff:10.244.3.231", "$type": "UnhandledExceptionEvent"}
We are using Kubernetes ingress