Hello,
I try to get ClientId when i override protected override async Task<IEnumerable<Claim>> GetClaimsFromAccount(User user) because i want to filter claims from database by ClientId. How i can do this?
I try to do this:
....
public string ClientId { get; set; }
public override Task<AuthenticateResult> PreAuthenticateAsync(SignInMessage message)
{
if (message != null) ClientId = message.ClientId;
return base.PreAuthenticateAsync(message);
}
....
and in GetClaimsFromAccount i try this:
protected override async Task<IEnumerable<Claim>> GetClaimsFromAccount(User user)
{
...
if (ClientId != null) // do something ;
...
}
but `ClientId` in `GetClaimsFromAccount` is always null.
how i can solve my problem?
Hello, I try to get
ClientId
when i overrideprotected override async Task<IEnumerable<Claim>> GetClaimsFromAccount(User user)
because i want to filter claims from database byClientId
. How i can do this? I try to do this:and in
GetClaimsFromAccount
i try this: