Interface IJwtBearerService
Represents a service for generating Json Web Tokens (JWT) for authentication.
Namespace: DataWeb.Identity
Assembly: DataWeb.Core.dll
Syntax
public interface IJwtBearerService
Methods
GetTokenAsync(ClaimsIdentity)
Generates a Jwt security token for the specified identity.
Declaration
Task<JwtSecurityToken> GetTokenAsync(ClaimsIdentity identity)
Parameters
Type | Name | Description |
---|---|---|
ClaimsIdentity | identity | The claims identity to generate the token for. |
Returns
Type | Description |
---|---|
Task<JwtSecurityToken> | A JWT security token. |