|
AuthenticationService
v0.2.0
|
A prinicipal implementation for users which are authenticated by a JWT token. More...
Public Member Functions | |
| JwtPrincipal (long id, String username, Set< Role > roles) | |
| bool | IsInRole (String role) |
| Checks if the user has a certain role. More... | |
Properties | |
| long | Id [get] |
| String | Username [get] |
| Set< Role > | Roles [get] |
| IIdentity | Identity [get] |
| The identity of the user as required by the MVC framework. More... | |
Properties inherited from Joutsen.Authentication.AuthenticatedUser | |
| long | Id [get] |
| Fetches the unique identifier of the user. More... | |
| String | Username [get] |
| Fetches the name of the user. More... | |
| Set< Role > | Roles [get] |
| Fetches the user's roles in different applications. More... | |
A prinicipal implementation for users which are authenticated by a JWT token.
| Joutsen.Authentication.Jwt.JwtPrincipal.JwtPrincipal | ( | long | id, |
| String | username, | ||
| Set< Role > | roles | ||
| ) |
| bool Joutsen.Authentication.Jwt.JwtPrincipal.IsInRole | ( | String | role | ) |
Checks if the user has a certain role.
|
get |
|
get |
The identity of the user as required by the MVC framework.
|
get |
|
get |
1.8.13