You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.
How can i implement Authorization claim based . I have tried but not working properly if i generate 2 token first for 'Administrator' and second for 'User'. the last token also getting the previous role. find the below code.
In TokenProviderMiddleware.cs class.
var claims = new Claim[]
{
new Claim(JwtRegisteredClaimNames.Sub, username),
new Claim(JwtRegisteredClaimNames.Jti, await _options.NonceGenerator())
,new Claim("roles",role)
,new Claim("userId",userId)
// new Claim(JwtRegisteredClaimNames.Iat, ToUnixEpochDate(now).ToString(), ClaimValueTypes.Integer64)
};
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
How can i implement Authorization claim based . I have tried but not working properly if i generate 2 token first for 'Administrator' and second for 'User'. the last token also getting the previous role. find the below code.
In TokenProviderMiddleware.cs class.
The text was updated successfully, but these errors were encountered: