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