hi
Please share the code of yourlogout code, Thanks
Hi
Add your code into CurrentPrincipalAccessor' changescope.
var userPrincipal = await SignInManager.CreateUserPrincipalAsync(user);
using (CurrentPrincipalAccessor.Change(userPrincipal))
{
await IdentitySecurityLogManager.SaveAsync(new IdentitySecurityLogContext()
{
Identity = IdentitySecurityLogIdentityConsts.IdentityExternal,
Action = "Login" + result
});
}
var userPrincipal = await SignInManager.CreateUserPrincipalAsync(user);
using (CurrentPrincipalAccessor.Change(userPrincipal))
{
await IdentitySecurityLogManager.SaveAsync(new IdentitySecurityLogContext()
{
Identity = IdentitySecurityLogIdentityConsts.IdentityExternal,
Action = result.ToIdentitySecurityLogAction(),
UserName = user.Name
});
}
hi
var userPrincipal = await SignInManager.CreateUserPrincipalAsync(user);
using (CurrentPrincipalAccessor.Change(userPrincipal))
{
await IdentitySecurityLogManager.SaveAsync()
}
hi
I mean your code instead of IdentitySecurityLogManager source code.
we are using this to add UserName but here UserId is not present.
Where did you call the below code? Please share the code. Thanks
await IdentitySecurityLogManager.SaveAsync(new IdentitySecurityLogContext()
{
Identity = IdentitySecurityLogIdentityConsts.Identity,
Action = Microsoft.AspNetCore.Identity.SignInResult.Success.ToIdentitySecurityLogAction(),
UserName = user.Name
});
hi
This is related to angular-oauth2-oidc, our angular team will check and reply to you.
hi
You can share the logs of authserver now without set level.
hi
It seems the logs don't contain authserver website.
Can you share the logs of all website? Thanks
Also set the level to Debug will be best.
public async static Task<int> Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
.WriteTo.Async(c => c.Console())
.CreateLogger();
hi
Can you try again to see if it still has the error output of blazor?
Please contact license@abp.io if the error is not solved.
hi
Please share your code of IdentitySecurityLogManager