Implem / Implem.Pleasanter

Pleasanter is a no-code/low-code development platform that runs on .NET. You can quickly create business applications with simple operations.
https://pleasanter.org
GNU Affero General Public License v3.0
531 stars 85 forks source link

SAML認証使用時に「No cookie preserving state from the request」Errが散発する。 #418

Closed funakura closed 1 year ago

funakura commented 2 years ago

1.環境 Pleasanter : 1.3.4.2 Docker環境  baseImage : mcr.microsoft.com/dotnet/sdk:6.0-focal  OS : Debian focal DB : PostgreSQL Browaer : Chrome IDP : AzureAD

2.現象 SSO認証環境で、ログイン時に「内部サーバーエラー」が散発します。 問題無くログインできるケースが支配的ですが、「内部サーバーエラー」が出る場合があります。 「内部サーバーエラー」が出た後でも、ログイン画面でSSOボタンを押すとログインできる場合、出来ない場合があります。 エラー発生の法則性は掴めていません。

発生時のErrLogの内容は以下です。

ErrMessage Received message $$$$$$$$$$$$$$$$$$$$ contains unexpected InResponseTo "####################". No cookie preserving state from the request was found so the message was not expected to have an InResponseTo attribute. This erro

ErrStackTrace at Sustainsys.Saml2.Saml2P.Saml2Response.ValidateInResponseTo(IOptions options, IEnumerable1 claimsIdentities) at Sustainsys.Saml2.Saml2P.Saml2Response.GetClaims(IOptions options, IDictionary2 relayData) at Sustainsys.Saml2.WebSso.AcsCommand.ProcessResponse(IOptions options, Saml2Response samlResponse, StoredRequestState storedRequestState, IdentityProvider identityProvider, String relayState) at Sustainsys.Saml2.WebSso.AcsCommand.Run(HttpRequestData request, IOptions options) at Sustainsys.Saml2.AspNetCore2.Saml2Handler.HandleRequestAsync() at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context) at Implem.Pleasanter.NetCore.Startup.Invoke(HttpContext httpContext, Func`1 next) in C:\Implem\Pleasanter.NetCore\Implem.Pleasanter\Startup.cs:line 289

以上、エラー報告のみにて

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 7 days with no activity.