DuendeSoftware / Support

Support for Duende Software products
20 stars 0 forks source link

Integration tests fails at `_signInManager.PasswordSignInAsync` #273

Closed khteh closed 1 year ago

khteh commented 1 year ago

Which version of Duende IdentityServer are you using? Community Which version of .NET are you using? 6.0.10

Describe the bug Integration tests throws the following exception:

at Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationHandler.InitializeHandlerAsync()\n   
at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.InitializeAsync(AuthenticationScheme scheme, HttpContext context)\n   
at Microsoft.AspNetCore.Authentication.AuthenticationHandlerProvider.GetHandlerAsync(HttpContext context, String authenticationScheme)\n   
at Duende.IdentityServer.Hosting.FederatedSignOut.FederatedSignoutAuthenticationHandlerProvider.GetHandlerAsync(HttpContext context, String authenticationScheme) in /_/src/IdentityServer/Hosting/FederatedSignOut/FederatedSignoutAuthenticationHandlerProvider.cs:line 33\n   
at Duende.IdentityServer.Services.DefaultUserSession.AuthenticateAsync() in /_/src/IdentityServer/Services/Default/DefaultUserSession.cs:line 137\n   
at Duende.IdentityServer.Services.DefaultUserSession.GetUserAsync() in /_/src/IdentityServer/Services/Default/DefaultUserSession.cs:line 204\n   
at Duende.IdentityServer.Services.DefaultUserSession.CreateSessionIdAsync(ClaimsPrincipal principal, AuthenticationProperties properties) in /_/src/IdentityServer/Services/Default/DefaultUserSession.cs:line 168\n   
at Duende.IdentityServer.Hosting.IdentityServerAuthenticationService.SignInAsync(HttpContext context, String scheme, ClaimsPrincipal principal, AuthenticationProperties properties) in /_/src/IdentityServer/Hosting/IdentityServerAuthenticationService.cs:line 59\n   
at Microsoft.AspNetCore.Identity.SignInManager`1.SignInWithClaimsAsync(TUser user, AuthenticationProperties authenticationProperties, IEnumerable`1 additionalClaims)\n   
at Microsoft.AspNetCore.Identity.SignInManager`1.SignInOrTwoFactorAsync(TUser user, Boolean isPersistent, String loginProvider, Boolean bypassTwoFactor)\n   
at Microsoft.AspNetCore.Identity.SignInManager`1.PasswordSignInAsync(TUser user, String password, Boolean isPersistent, Boolean lockoutOnFailure)\n   
at Microsoft.AspNetCore.Identity.SignInManager`1.PasswordSignInAsync(String userName, String password, Boolean isPersistent, Boolean lockoutOnFailure)\n   
at KyberlifeIAM.Infrastructure.Data.Repositories.UserRepository.SignIn(String username, String password, String remoteIP, Boolean rememberMe, Boolean logoutOnFailure) in /usr/src/kyberlife/KyberlifeIAM/src/KyberlifeIAM.Infrastructure/Data/Repositories/UserRepository.cs:line 216"

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior.

Expected behavior

A clear and concise description of what you expected to happen.

Log output/exception with stacktrace

data

Additional context

Add any other context about the problem here.

brockallen commented 1 year ago

Integration tests throws the following exception:

I think you missed the actual exception (I only see the call stack above).

khteh commented 1 year ago

"Object reference not set to an instance of an object."

brockallen commented 1 year ago

I'm not sure -- that does look to be down in Microsoft code and I don't know any of the calling code.

brockallen commented 1 year ago

Any update on this?