Hi, I have migrated Identity server to OpenIddict. It is working fine in local but after deployment, I'm getting below screen
And below is log file
2024-06-12 18:17:58.794 +08:00 [INF] Starting web host.
2024-06-12 18:18:10.941 +08:00 [FTL] Host terminated unexpectedly!
Volo.Abp.AbpInitializationException: An error occurred during ConfigureServices phase of the module Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule, Volo.Abp.OpenIddict.AspNetCore, Version=8.1.3.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details.
---> System.Security.Cryptography.CryptographicException: The specified network password is not correct.
at System.Security.Cryptography.X509Certificates.CertificatePal.FilterPFXStore(ReadOnlySpan`1 rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
at System.Security.Cryptography.X509Certificates.CertificatePal.FromBlobOrFile(ReadOnlySpan`1 rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
at System.Security.Cryptography.X509Certificates.CertificatePal.FromBlob(ReadOnlySpan`1 rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
at Microsoft.Extensions.DependencyInjection.OpenIddictServerBuilder.AddDevelopmentEncryptionCertificate(X500DistinguishedName subject)
at Microsoft.Extensions.DependencyInjection.OpenIddictServerBuilder.AddDevelopmentEncryptionCertificate()
at Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule.<>c__DisplayClass1_0.<AddOpenIddictServer>b__0(OpenIddictServerBuilder builder)
at Microsoft.Extensions.DependencyInjection.OpenIddictServerExtensions.AddServer(OpenIddictBuilder builder, Action`1 configuration)
at Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule.AddOpenIddictServer(IServiceCollection services)
at Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule.ConfigureServices(ServiceConfigurationContext context)
at Volo.Abp.AbpApplicationBase.ConfigureServices()
--- End of inner exception stack trace ---
at Volo.Abp.AbpApplicationBase.ConfigureServices()
at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action`1 optionsAction)
at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action`1 optionsAction)
at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action`1 optionsAction)
at Volo.Abp.AbpApplicationFactory.Create[TStartupModule](IServiceCollection services, Action`1 optionsAction)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplication[TStartupModule](IServiceCollection services, Action`1 optionsAction)
at eFC.Web.Startup.ConfigureServices(IServiceCollection services) in /agents/work/4/82/s/src/src/eFC.Web/Startup.cs:line 12
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.AspNetCore.Hosting.MethodInfoExtensions.InvokeWithoutWrappingExceptions(MethodInfo methodInfo, Object obj, Object[] parameters)
at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services, Object instance)
at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass7_0.<UseStartup>b__0(HostBuilderContext context, IServiceCollection services)
at Microsoft.Extensions.Hosting.HostBuilder.InitializeServiceProvider()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at eFC.Web.Program.Main(String[] args) in /agents/work/4/82/s/src/src/eFC.Web/Program.cs:line 36
Can you please help if there is anything missed.
ABP Framework version: v8.1.1
UI Type:React
Database System: EF Core (SQL Server)
Tiered (for MVC) or Auth Server Separated (for Angular): yes
Exception message and full stack trace:NA
Steps to reproduce the issue: Migration from Identity server to OpenIddict
67 Answer(s)
-
0
OpenIddict => Application
Also, I noticed with IdentityServer Code, on the click on Logout I was reaching to custom logout page - https://github.com/priyankamauryaa/eFC/blob/master/eFC.Web/Pages/Account/CustomLogout.cs
but after migration it does not reach to custom logout.
To fix this, how to know the correct URL as earlier I was using this URL- https://efc.devhealthgrp.com.sg/SIT/eFCApp and it was working as expected, I even tried https://efc.devhealthgrp.com.sg/SIT/eFCApp/signout-callback-oidc, this is also not working and giving the same error.
-
0
-
0
hi
You can also change the URLs in the database.
The page exists on the OpenIddict Pro module. Make sure your app has installed this module.
https://commercial.abp.io/modules/Volo.OpenIddict.Pro
After updating the URL, I'm able to land on login page but it is still not clearing the external logout session, it is supposed to go on custom logout where I'm clearing external login session.
-
0
After updating the URL, I'm able to land on login page but it is still not clearing the external logout session, it is supposed to go on custom logout where I'm clearing external login session.
Please share the http request logs.
Thanks
-
0
After updating the URL, I'm able to land on login page but it is still not clearing the external logout session, it is supposed to go on custom logout where I'm clearing external login session.
Please share the http request logs.
Thanks
Hi, please find the log below:
2024-06-20 13:25:45.328 +08:00 [INF] Request starting HTTP/1.1 GET https://efcapp.devhealthgrp.com.sg/SIT/eFCApp/connect/logout?id_token_hint=eyJhbGciOiJSUzI1NiIsImtpZCI6IjRGODQ0QkRCMTk1Rjg5OEIxM0RGQzI0NzA2Njg0MUUxRkVBQTAwQjgiLCJ4NXQiOiJUNFJMMnhsZmlZc1QzOEpIQm1oQjRmNnFBTGciLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL2VmY2FwcC5kZXZoZWFsdGhncnAuY29tLnNnL3NpdC9lZmNhcHAiLCJleHAiOjE3MTg4NjIzMzQsImlhdCI6MTcxODg2MTEzNCwiYXVkIjoiZUZDX0FwcCIsInN1YiI6ImFlODdiMTZjLTU4NjktNGEwNS04MzRlLWExZDdlYTkxZTczNyIsIm9pX2F1X2lkIjoiYzdkNzkxYmItNmVjZC03NTUwLTBmYWQtM2ExMzNiMmZiOTQzIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiaGVhbHRoZ3JwXFxwcml5YTA1MzR0IiwiYXpwIjoiZUZDX0FwcCIsImF0X2hhc2giOiJHWU1EeGlNQW5xRDI0OFBwNDZVVDJRIiwib2lfdGtuX2lkIjoiNWZiOGNlOWItMTMzNy05YTYyLTkyYTQtM2ExMzQ2NDg1NDc2In0.faY6uP7Vx7AF8hJBCg74s-csfFOU3NNNJI2y8xalmfORDI7tuPbeWYGgMViKdbjzJCmAD_lzNqTwHsy6imYpA7M-mx59qKJfQJt1VxMBH7gkk_cL72iLAP0Q7A4ASel8FUJB4QcBnb-d_uLR8oo3egkGmN3g7p7ok1Qa6qt3xdMu2FXQbscqoVp8vqZTSeHKMI4GopnxKlHoRmhx47m1r-ok2vPOfJxi5Jg9mjH9vPg5XsYFERFogvn2q_b0YWGY4V52DWb9UR7sD_KLZPRP8VddQfYyrzCo7d2dqF284o41JZ03k4466RxXi7ww_1MDbV1brwiH06WIcSTaiBSPsA&post_logout_redirect_uri=https%3A%2f%2fefc.devhealthgrp.com.sg%2fSIT%2feFCApp - null null 2024-06-20 13:25:45.330 +08:00 [ERR] Request Info: Accept : text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7, Accept-Encoding : gzip, deflate, br, zstd, Accept-Language : en-US,en;q=0.9, Connection : Keep-Alive, Cookie : .AspNetCore.Identity.Application=CfDJ8I6bhRkLkWROlKp09osWwJHCMvr9D1EfxJjIlcgv_el-Tr3c7NHsnu3jN_XVdgdz13Xh84D2y2XjI06M2OUwUrEh93Uo11eA4dXgy1CmT1ia_7jN3LTnnbQb3FN0Tocz8d9eJbHvYQ3lVDLIhPpBO3LdQCg7n0Mzp7UFgsJBstt4s1qG6BVbGiOSSOFYcJcSgHDlrW7wayhS_2YMJR-wAvzSlrheOtmRus7ILrM2-LeJMo6Qr9Vsk8K-B7cp2BL9Dogr5l_by9CdPElNnSkXm6Aiit5hxFcICJA8yb58nToVLBqmeKeQa0GqL09OlTYfn-qqHnuD8tAnkNucN44bPlqdHEhKnHYAvA5JkF_1IdHvMBz80qFMGwvhbf5w5-t2xrxat1ploaxB90on9gqXwAxoEWblyqnfCXYCI3mBC0a9X4IDJt0cw3AGMlZSOt81FeMTUgITe-cvXNWiZsSlWT2oCP4xOkKyrVAz3wLgj4ZfTeLmF7ALV4Puu4P9oxiAI5DTt1apN_KG7-YW6Hvl-OCJlFsvZyuJHKcbDrkvZPYWP-GWl7Qnxjpz0ZcQNfBfW7jz8ziWQXSewVQbZkIqO7uqzbPblGTi95epktLmQXmHD4tKKL46OYQ_deR0-ZTAakjo1AZT_kTClZP3EmNv47mAAwiacqV0mEQNwsKAGjCPsAxqmqpFoJWS_DTJElCRcO1oY5IWDKrCNVtV5F3nY6DfiPmPhl6Ynu6fuebSlJ7hkocXl2e1upC2lLODRypYqvyMQvC4HSO-tpXsTezzanRg7f6zFbIvXA-HrmxNzL8PXS0EOzsyBXdctYMPyS4bMKZ0hG1SjHLnDfoBGRPEloRllnJosmpPUqWCs-V7GqcBNGPzdGY2uAR9cvznhaDxOnYq-bGhULCkH2yvselmJFmvvWPP_Dr_XHDeKPLJre2ETpqhkXXhGNuTmRXdY63sRPVM4FkQB8GILr7MnAKptT9ufkkYmG8HuWLkiXsgyQYkh5am1QIqJ9DXUoQ3phAakM4jsxhILiNdOPqNWgG4GrscU08YcHA7S-Qpy000n02cUuoUVMPOexwRkOjpf_pJPK3bIyjzLEx3D30k3YevMo5q3E9UUBfYIgz_0m4OnZeY7i_qKh12sW6yWF1ag-wTtj7ZRbuFEUWPNDJKBVth5_iof9BpJUd22E1_pD9InQlDsvkPsiTCtxOJ7Bkt3wZ7dK511odUX2JNHLCvroTqRHrChBLYzG7TvEBOQGkqkC-ZaL-r2GLV3pikyGgiaLWh1zq-OJoUgMyUIH51cBdhlTSgOmHYW1bMqjNmhD8_tX4DFf8kqFO_PZw0wBRTajK-sH40eNPw_pGQL-79PBl9c-nTw67NlnpZGQw5TwVvulxXL8swyVbRwOiziAqi4JDm1hEC--aT0wzovG3OpD6IOYq8lltU-kU0EwvuDCVuRw2uyPz8zyInlFCWFiF9bV2759qJ4tii39zRQgJ-GpE_VxcNJB4fjJc4VbCwv_C5S9_Kifv_GBorJj4vV7Gg120HBgXQj3h8n2TMs9RowBHWGntiYbgEqWTX8n_jYkMEBpkvQrEKAziA3Qqm0FZENZQazGesufDyXgqUw1HWxIAmSoxTP1GrNdQwM3rKpqVwuu94OirNDSQ7099jk-EWh2VfRGe_3ViNC20wRo7TbiqnRGcQ4LUsO9UJE5CZCRo97K9Y31Po7DKLbJWoHJVfJHd-cjpx26G_RUhBMp_de6OXAm6RDr2esGJ7sj3U5x3enkMk6b_8nMyDy3foQEOInM5A1xkggot02boHBDwpWJZFKDE50-hdGL8jASj1zg1YlT_cUljAXq-sj4pCIZ0j9e48Xn-RcwFq2KTQlQgdvqGNsk1jIKz_J3X64On2uSRgVWhpFwnEnq-dOgF8HcNLF0SrmtFfTZVFffiVgmotqbr0bbt6glWQCfcCOF-6e8JV6eZcygI4HCSY6nA43J4SfcLOE8HTvQr4EUMhqL7VcMvYkmezsrYT0e0fUTYdqd8dBD4msPgY0DPg4jkdoiUgvIui8sZYjh_BuNBEGq0mdWhm5oS2r9Iv1N1iGklGwtKMktaPvr_N8Fh4fs4lgAqFiEKCM9Koe6G-qjuWvYWH5HphpRDIBQyVVO0WznPEogSeYLQ2vK_utM2Um9QF8UWnwZDGZh3RWIV4mGofzjjMNxiF8_NNSJ_kkh-MhV_a0-1Z6nD3M_pqm5B9HogwWV6S64DP6iPmrPqdy7jrgVynM7auMQ3vuaKAFy28e8YIkhyy_9jYlZK5nRLqDh2u5xfyBptCyNJ5eTuQaf5QrcFEK7p99bAxrejNg9X1Ln4ikOne06zZA8OAwE4vc4NSKU0cdlLw0mSWQK_hEMr_ywmW3oWOuqfQFDKHCguH0EqR0IuvFrLQrEBqmo9fxohq9tyH30GHxZ34Td6f1Nts2qOpUHllZoCXyx93UQzzLlkNPFuv4mDho2xI_U4lXcwsr4pO7y-lVO0qHqbWE8LajUq1WkSVQdiA7jWTVQYKSEc45MXMTZ-EQ3YTI3TxisZD-dL1SQZjJJ1ed9510HsyfK6qslMiWzxDRfpiQEvWYVY5HgE-owGKLXQB8HYIWI34oZhLVJPBl34EeaKheTvKocLlYX_95VffGVYU6fc_--R4tGPKYgVvPtU3QArZJXZA00Rk7cEV-4hzDXJ5JaUHpjRjNFVf76wk5NEV0_mbqqbc-SV1sm3_7b8oO0pwblXa1hCIqsUkg613k8Mf8oZ48R3_h4cK45B3cjk-zaKVoblS3bUQXcGDCr0_g8D6GCpjilxbH6eK2_TDSC64azreZHwsmHQHXOFMQkJmGDMWXSc2HPcmqwSx-pOU85aTlecIbMim6gSCObyk5KKc9uMtLt2PqtriPBYp8Q3QwsacGoSnFvbQHkQC9mxMrBDCpcsdIFhAy1284A, Host : efcapp.devhealthgrp.com.sg, Max-Forwards : 10, Referer : https://efc.devhealthgrp.com.sg/sit/efcapp/, User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.0.0, sec-ch-ua : "Microsoft Edge";v="123", "Not:A-Brand";v="8", "Chromium";v="123", sec-ch-ua-mobile : ?0, sec-ch-ua-platform : "Windows", Upgrade-Insecure-Requests : 1, Sec-Fetch-Site : same-origin, Sec-Fetch-Mode : navigate, Sec-Fetch-User : ?1, Sec-Fetch-Dest : document, X-Forwarded-For : 10.145.19.39, 10.246.136.14:57418, 10.246.136.25, X-Original-URL : /SIT/eFCApp/connect/logout?id_token_hint=eyJhbGciOiJSUzI1NiIsImtpZCI6IjRGODQ0QkRCMTk1Rjg5OEIxM0RGQzI0NzA2Njg0MUUxRkVBQTAwQjgiLCJ4NXQiOiJUNFJMMnhsZmlZc1QzOEpIQm1oQjRmNnFBTGciLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL2VmY2FwcC5kZXZoZWFsdGhncnAuY29tLnNnL3NpdC9lZmNhcHAiLCJleHAiOjE3MTg4NjIzMzQsImlhdCI6MTcxODg2MTEzNCwiYXVkIjoiZUZDX0FwcCIsInN1YiI6ImFlODdiMTZjLTU4NjktNGEwNS04MzRlLWExZDdlYTkxZTczNyIsIm9pX2F1X2lkIjoiYzdkNzkxYmItNmVjZC03NTUwLTBmYWQtM2ExMzNiMmZiOTQzIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiaGVhbHRoZ3JwXFxwcml5YTA1MzR0IiwiYXpwIjoiZUZDX0FwcCIsImF0X2hhc2giOiJHWU1EeGlNQW5xRDI0OFBwNDZVVDJRIiwib2lfdGtuX2lkIjoiNWZiOGNlOWItMTMzNy05YTYyLTkyYTQtM2ExMzQ2NDg1NDc2In0.faY6uP7Vx7AF8hJBCg74s-csfFOU3NNNJI2y8xalmfORDI7tuPbeWYGgMViKdbjzJCmAD_lzNqTwHsy6imYpA7M-mx59qKJfQJt1VxMBH7gkk_cL72iLAP0Q7A4ASel8FUJB4QcBnb-d_uLR8oo3egkGmN3g7p7ok1Qa6qt3xdMu2FXQbscqoVp8vqZTSeHKMI4GopnxKlHoRmhx47m1r-ok2vPOfJxi5Jg9mjH9vPg5XsYFERFogvn2q_b0YWGY4V52DWb9UR7sD_KLZPRP8VddQfYyrzCo7d2dqF284o41JZ03k4466RxXi7ww_1MDbV1brwiH06WIcSTaiBSPsA&post_logout_redirect_uri=https%3A%2f%2fefc.devhealthgrp.com.sg%2fSIT%2feFCApp, X-ARR-SSL : 2048|128|C=SG, O=Healthgrp, OU=Healthgrp, CN=Healthgrp ICA|C=SG, O=Synapxe Pte Ltd, OU=eFC, CN=hisfincvsweb01.devhealthgrp.com.sg, X-ARR-LOG-ID : dbf04403-b85e-4a54-bbef-3c055872defe, X-dynaTrace-Application : v=2;appId=ea7c4b59f27d43eb;cookieDomain=devhealthgrp.com.sg;rid=1879013932;rpid=550012538;en=hwdxt9ow, X-dynaTrace-RequestState : agentId=0xfa6dbf90e21e2e44&pathDepth=1, X-dynaTrace : FW4;-378283432;9;-501338556;28;2;260533856;1194;1477;2h01;3he21e2e44;4h1c;5h01, traceparent : 00-034c517bbf768892ec9abf6ed26986c2-4bbca03ec1a7eed3-01, tracestate : f876e60-e973da58@dt=fw4;9;e21e2e44;1c;2;0;0;4aa;1477;2h01;3he21e2e44;4h1c;5h01, X-Correlation-Id : 9434702496d64efea48b912a0bdf160a 2024-06-20 13:25:45.331 +08:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessRequestContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ResolveRequestUri. 2024-06-20 13:25:45.331 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ResolveRequestUri. 2024-06-20 13:25:45.331 +08:00 [INF] The request URI matched a server endpoint: "Logout". 2024-06-20 13:25:45.331 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+InferEndpointType. 2024-06-20 13:25:45.331 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by Volo.Abp.Account.Web.Pages.Account.OpenIddictImpersonateInferEndpointType. 2024-06-20 13:25:45.331 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateTransportSecurityRequirement. 2024-06-20 13:25:45.331 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateHostHeader. 2024-06-20 13:25:45.337 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ExtractLogoutRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ExtractGetOrPostRequest`1[[OpenIddict.Server.OpenIddictServerEvents+ExtractLogoutRequestContext, OpenIddict.Server, Version=5.1.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]]. 2024-06-20 13:25:45.338 +08:00 [INF] The logout request was successfully extracted: { "id_token_hint": "[redacted]", "post_logout_redirect_uri": "https://efc.devhealthgrp.com.sg/SIT/eFCApp" }. 2024-06-20 13:25:45.338 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Session+ExtractLogoutRequest. 2024-06-20 13:25:45.340 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateLogoutRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Session+ValidatePostLogoutRedirectUriParameter. 2024-06-20 13:25:45.341 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+ValidateAuthenticationDemand. 2024-06-20 13:25:45.341 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+EvaluateValidatedTokens. 2024-06-20 13:25:45.341 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+ResolveValidatedTokens. 2024-06-20 13:25:45.341 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+ValidateRequiredTokens. 2024-06-20 13:25:45.341 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+ValidateClientId. 2024-06-20 13:25:45.342 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateTokenContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Protection+ResolveTokenValidationParameters. 2024-06-20 13:25:45.342 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateTokenContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Protection+ValidateReferenceTokenIdentifier. 2024-06-20 13:25:45.343 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateTokenContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Protection+ValidateIdentityModelToken. 2024-06-20 13:25:45.343 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateTokenContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Protection+NormalizeScopeClaims. 2024-06-20 13:25:45.343 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateTokenContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Protection+MapInternalClaims. 2024-06-20 13:25:45.344 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateTokenContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Protection+RestoreTokenEntryProperties. 2024-06-20 13:25:45.344 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateTokenContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Protection+ValidatePrincipal. 2024-06-20 13:25:45.344 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateTokenContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Protection+ValidateTokenEntry. 2024-06-20 13:25:45.346 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateTokenContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Protection+ValidateAuthorizationEntry. 2024-06-20 13:25:45.346 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+ValidateIdentityToken. 2024-06-20 13:25:45.346 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessAuthenticationContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+ResolveHostAuthenticationProperties. 2024-06-20 13:25:45.346 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateLogoutRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Session+ValidateAuthentication. 2024-06-20 13:25:45.404 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateLogoutRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Session+ValidateClientPostLogoutRedirectUri. 2024-06-20 13:25:45.420 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateLogoutRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Session+ValidateAuthorizedParty. 2024-06-20 13:25:45.421 +08:00 [INF] The logout request was successfully validated. 2024-06-20 13:25:45.421 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Session+ValidateLogoutRequest. 2024-06-20 13:25:45.423 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+HandleLogoutRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Session+AttachPrincipal. 2024-06-20 13:25:45.424 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+HandleLogoutRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+EnablePassthroughMode`2[[OpenIddict.Server.OpenIddictServerEvents+HandleLogoutRequestContext, OpenIddict.Server, Version=5.1.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f],[OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlerFilters+RequireLogoutEndpointPassthroughEnabled, OpenIddict.Server.AspNetCore, Version=5.1.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]]. 2024-06-20 13:25:45.424 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+HandleLogoutRequestContext was marked as skipped by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+EnablePassthroughMode`2[[OpenIddict.Server.OpenIddictServerEvents+HandleLogoutRequestContext, OpenIddict.Server, Version=5.1.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f],[OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlerFilters+RequireLogoutEndpointPassthroughEnabled, OpenIddict.Server.AspNetCore, Version=5.1.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]]. 2024-06-20 13:25:45.425 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Session+HandleLogoutRequest. 2024-06-20 13:25:45.425 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was marked as skipped by OpenIddict.Server.OpenIddictServerHandlers+Session+HandleLogoutRequest. ``
-
0
2024-06-20 13:25:45.456 +08:00 [INF] Executing endpoint 'Volo.Abp.OpenIddict.Controllers.LogoutController.GetAsync (Volo.Abp.OpenIddict.AspNetCore)' 2024-06-20 13:25:45.460 +08:00 [INF] Route matched with {action = "Get", controller = "Logout", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAsync() on controller Volo.Abp.OpenIddict.Controllers.LogoutController (Volo.Abp.OpenIddict.AspNetCore). 2024-06-20 13:25:45.462 +08:00 [INF] Executing action method Volo.Abp.OpenIddict.Controllers.LogoutController.GetAsync (Volo.Abp.OpenIddict.AspNetCore) - Validation state: "Valid" 2024-06-20 13:25:45.465 +08:00 [INF] AuthenticationScheme: Identity.Application signed out. 2024-06-20 13:25:45.465 +08:00 [INF] AuthenticationScheme: Identity.External signed out. 2024-06-20 13:25:45.466 +08:00 [INF] AuthenticationScheme: Identity.TwoFactorUserId signed out. 2024-06-20 13:25:45.466 +08:00 [INF] Executed action method Volo.Abp.OpenIddict.Controllers.LogoutController.GetAsync (Volo.Abp.OpenIddict.AspNetCore), returned result Microsoft.AspNetCore.Mvc.SignOutResult in 4.0156ms. 2024-06-20 13:25:45.468 +08:00 [INF] Executing SignOutResult with authentication schemes (["OpenIddict.Server.AspNetCore"]). 2024-06-20 13:25:45.470 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessSignOutContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ResolveHostSignOutProperties. 2024-06-20 13:25:45.471 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessSignOutContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+ValidateSignOutDemand. 2024-06-20 13:25:45.471 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessSignOutContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+AttachCustomSignOutParameters. 2024-06-20 13:25:45.473 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyLogoutResponseContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Session+AttachPostLogoutRedirectUri. 2024-06-20 13:25:45.474 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyLogoutResponseContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Session+AttachResponseState. 2024-06-20 13:25:45.474 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyLogoutResponseContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+AttachHttpResponseCode`1[[OpenIddict.Server.OpenIddictServerEvents+ApplyLogoutResponseContext, OpenIddict.Server, Version=5.1.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]]. 2024-06-20 13:25:45.474 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyLogoutResponseContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+AttachCacheControlHeader`1[[OpenIddict.Server.OpenIddictServerEvents+ApplyLogoutResponseContext, OpenIddict.Server, Version=5.1.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]]. 2024-06-20 13:25:45.475 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyLogoutResponseContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+Session+ProcessHostRedirectionResponse. 2024-06-20 13:25:45.475 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyLogoutResponseContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ProcessStatusCodePagesErrorResponse`1[[OpenIddict.Server.OpenIddictServerEvents+ApplyLogoutResponseContext, OpenIddict.Server, Version=5.1.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]]. 2024-06-20 13:25:45.477 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyLogoutResponseContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ProcessLocalErrorResponse`1[[OpenIddict.Server.OpenIddictServerEvents+ApplyLogoutResponseContext, OpenIddict.Server, Version=5.1.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]]. 2024-06-20 13:25:45.477 +08:00 [INF] The logout response was successfully returned to 'https://efc.devhealthgrp.com.sg/SIT/eFCApp': Microsoft.AspNetCore.Http.DefaultHttpResponse. 2024-06-20 13:25:45.478 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyLogoutResponseContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+Session+ProcessQueryResponse. 2024-06-20 13:25:45.478 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyLogoutResponseContext was marked as handled by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+Session+ProcessQueryResponse. 2024-06-20 13:25:45.478 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessSignOutContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Session+ApplyLogoutResponse`1[[OpenIddict.Server.OpenIddictServerEvents+ProcessSignOutContext, OpenIddict.Server, Version=5.1.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]]. 2024-06-20 13:25:45.478 +08:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessSignOutContext was marked as handled by OpenIddict.Server.OpenIddictServerHandlers+Session+ApplyLogoutResponse`1[[OpenIddict.Server.OpenIddictServerEvents+ProcessSignOutContext, OpenIddict.Server, Version=5.1.0.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]]. 2024-06-20 13:25:45.478 +08:00 [INF] Executed action Volo.Abp.OpenIddict.Controllers.LogoutController.GetAsync (Volo.Abp.OpenIddict.AspNetCore) in 17.7392ms 2024-06-20 13:25:45.478 +08:00 [INF] Executed endpoint 'Volo.Abp.OpenIddict.Controllers.LogoutController.GetAsync (Volo.Abp.OpenIddict.AspNetCore)' 2024-06-20 13:25:45.479 +08:00 [INF] Request finished HTTP/1.1 GET https://efcapp.devhealthgrp.com.sg/SIT/eFCApp/connect/logout?id_token_hint=eyJhbGciOiJSUzI1NiIsImtpZCI6IjRGODQ0QkRCMTk1Rjg5OEIxM0RGQzI0NzA2Njg0MUUxRkVBQTAwQjgiLCJ4NXQiOiJUNFJMMnhsZmlZc1QzOEpIQm1oQjRmNnFBTGciLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL2VmY2FwcC5kZXZoZWFsdGhncnAuY29tLnNnL3NpdC9lZmNhcHAiLCJleHAiOjE3MTg4NjIzMzQsImlhdCI6MTcxODg2MTEzNCwiYXVkIjoiZUZDX0FwcCIsInN1YiI6ImFlODdiMTZjLTU4NjktNGEwNS04MzRlLWExZDdlYTkxZTczNyIsIm9pX2F1X2lkIjoiYzdkNzkxYmItNmVjZC03NTUwLTBmYWQtM2ExMzNiMmZiOTQzIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiaGVhbHRoZ3JwXFxwcml5YTA1MzR0IiwiYXpwIjoiZUZDX0FwcCIsImF0X2hhc2giOiJHWU1EeGlNQW5xRDI0OFBwNDZVVDJRIiwib2lfdGtuX2lkIjoiNWZiOGNlOWItMTMzNy05YTYyLTkyYTQtM2ExMzQ2NDg1NDc2In0.faY6uP7Vx7AF8hJBCg74s-csfFOU3NNNJI2y8xalmfORDI7tuPbeWYGgMViKdbjzJCmAD_lzNqTwHsy6imYpA7M-mx59qKJfQJt1VxMBH7gkk_cL72iLAP0Q7A4ASel8FUJB4QcBnb-d_uLR8oo3egkGmN3g7p7ok1Qa6qt3xdMu2FXQbscqoVp8vqZTSeHKMI4GopnxKlHoRmhx47m1r-ok2vPOfJxi5Jg9mjH9vPg5XsYFERFogvn2q_b0YWGY4V52DWb9UR7sD_KLZPRP8VddQfYyrzCo7d2dqF284o41JZ03k4466RxXi7ww_1MDbV1brwiH06WIcSTaiBSPsA&post_logout_redirect_uri=https%3A%2f%2fefc.devhealthgrp.com.sg%2fSIT%2feFCApp - 302 null null 151.1628ms 2024-06-20 13:25:45.967 +08:00 [INF] Executing action method eFC.Personalizations.PersonalizationsAppService.GetPersonalization (eFC.Application) - Validation state: "Valid" 2024-06-20 13:25:46.042 +08:00 [INF] Executed action method eFC.Personalizations.PersonalizationsAppService.GetPersonalization (eFC.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 75.4002ms. 2024-06-20 13:25:46.050 +08:00 [DBG] Added 0 entity changes to the current audit log 2024-06-20 13:25:46.051 +08:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.Dictionary`2[[System.String, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Collections.Generic.List`1[[eFC.Personalizations.PersonalizationSettingDto, eFC.Application.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. 2024-06-20 13:25:46.052 +08:00 [INF] Executed action eFC.Personalizations.PersonalizationsAppService.GetPersonalization (eFC.Application) in 3900.4851ms
-
0
hi
Logs seem no errors now.
Can you share an online URL and user&password?
I will check it online.
-
0
hi
Logs seem no errors now.
Can you share an online URL and user&password?
I will check it online.
My application will not work outside organization machine. seems like by default it is calling LogoutController, what is the way to add custom LogoutController?
-
0
https://github.com/abpframework/abp/blob/dev/modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/Controllers/LogoutController.cs#L12-L24
-
0
https://github.com/abpframework/abp/blob/dev/modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/Controllers/LogoutController.cs#L12-L24
I have created this CustomLogoutController
[Dependency(ReplaceServices = true)] [ExposeServices(typeof(LogoutController))] public class CustomLogoutController : LogoutController { [HttpGet] public override async Task<IActionResult> GetAsync() { if (Response != null) { IConfigurationRoot _config = new ConfigurationBuilder().SetBasePath(Directory.GetParent(AppContext.BaseDirectory).FullName) .AddJsonFile("appsettings.json", false).Build(); var externalLogout = _config.GetSection("ADFSConfig:EndSession").Get<string>(); Response.Redirect(externalLogout); } return await base.GetAsync(); } }
But after deployment, I found this in log
Removing the controller eFC.Web.Pages.Account.CustomLogoutController, eFC.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from the application model since it replaces the controller(s): Volo.Abp.OpenIddict.Controllers.LogoutController, Volo.Abp.OpenIddict.AspNetCore, Version=8.1.3.0, Culture=neutral, PublicKeyToken=null
how to avoid this as I'm still not able to end my external login session.
-
0
hi
Add
ReplaceControllers
attribute.[ReplaceControllers(typeof(LogoutController))] public class MyLogoutController : LogoutController { public override Task<IActionResult> GetAsync() { return base.GetAsync(); } }
-
0
hi
You need to call the base method to logout
// Ask ASP.NET Core Identity to delete the local and external cookies created // when the user agent is redirected from the external identity provider // after a successful authentication flow (e.g Google or Facebook). await SignInManager.SignOutAsync(); // Returning a SignOutResult will ask OpenIddict to redirect the user agent // to the post_logout_redirect_uri specified by the client application or to // the RedirectUri specified in the authentication properties if none was set. return SignOut(authenticationSchemes: OpenIddictServerAspNetCoreDefaults.AuthenticationScheme);
It will redirect to
post_logout_redirect_uri
, you can redirect toexternalLogout
in yourpost_logout_redirect_uri
.If you can share a simple project, I can download and check it.
liming.ma@volosoft.com
-
0
hi
You need to call the base method to logout
// Ask ASP.NET Core Identity to delete the local and external cookies created // when the user agent is redirected from the external identity provider // after a successful authentication flow (e.g Google or Facebook). await SignInManager.SignOutAsync(); // Returning a SignOutResult will ask OpenIddict to redirect the user agent // to the post_logout_redirect_uri specified by the client application or to // the RedirectUri specified in the authentication properties if none was set. return SignOut(authenticationSchemes: OpenIddictServerAspNetCoreDefaults.AuthenticationScheme);
It will redirect to
post_logout_redirect_uri
, you can redirect toexternalLogout
in yourpost_logout_redirect_uri
.If you can share a simple project, I can download and check it.
liming.ma@volosoft.com
Hi, I have updated post_logout_redirect_uri (refer below columns)
but still while calling the logout post_logout_redirect_uri is same (seems like it is taking from somewhere else), it is going on login page but not clearing external login session
Please find my sample project here- https://github.com/priyankamauryaa/eFC
-
0
hi
You need to call the base method to logout
// Ask ASP.NET Core Identity to delete the local and external cookies created // when the user agent is redirected from the external identity provider // after a successful authentication flow (e.g Google or Facebook). await SignInManager.SignOutAsync(); // Returning a SignOutResult will ask OpenIddict to redirect the user agent // to the post_logout_redirect_uri specified by the client application or to // the RedirectUri specified in the authentication properties if none was set. return SignOut(authenticationSchemes: OpenIddictServerAspNetCoreDefaults.AuthenticationScheme);
It will redirect to
post_logout_redirect_uri
, you can redirect toexternalLogout
in yourpost_logout_redirect_uri
.If you can share a simple project, I can download and check it.
liming.ma@volosoft.com
Hi, I have updated post_logout_redirect_uri (refer below columns)
but still while calling the logout post_logout_redirect_uri is same (seems like it is taking from somewhere else), it is going on login page but not clearing external login session
Please find my sample project here- https://github.com/priyankamauryaa/eFC
Hi, it is working after updating this in code
[ReplaceControllers(typeof(LogoutController))] public class CustomLogoutController : LogoutController { [HttpGet] public override async Task<IActionResult> GetAsync() { if (Response != null) { IConfigurationRoot _config = new ConfigurationBuilder().SetBasePath(Directory.GetParent(AppContext.BaseDirectory).FullName) .AddJsonFile("appsettings.json", false).Build(); var externalLogout = _config.GetSection("ADFSConfig:EndSession").Get<string>(); Response.Redirect(externalLogout); } await SignInManager.SignOutAsync(); return SignOut(); } }
-
0
Hi, it is working after updating this in code
Great. 👍
-
0
Hi, it is working after updating this in code
Great. 👍
Thank you so much for your support and time. :)
-
0
Any time.