This class represent an authenticated user.
More...
This class represent an authenticated user.
◆ getRoles()
| ICollection<UserRole> AeroGear.Mobile.Auth.User.getRoles |
( |
| ) |
|
Gets the roles.
- Returns
- All the roles associated with this user.
◆ HasRealmRole()
| bool AeroGear.Mobile.Auth.User.HasRealmRole |
( |
string |
role | ) |
|
Checks if the user has the specified Realm role..
- Returns
true, if the passed in role is associated with this user, false otherwise.
- Parameters
-
◆ HasResourceRole()
| bool AeroGear.Mobile.Auth.User.HasResourceRole |
( |
string |
role, |
|
|
string |
resourceId |
|
) |
| |
Checks if the user has the specified Resource role.
- Returns
true, if the passed in role is associated with this user, false otherwise.
- Parameters
-
| role | role to be checked. |
| resourceId | resourceId related to role. |
◆ NewUser()
| static UserBuilder AeroGear.Mobile.Auth.User.NewUser |
( |
| ) |
|
|
static |
Instantiate a new user object with a fluent api.
- Returns
- The user, ready to be configured with fluent api.
◆ Roles
| List<UserRole> AeroGear.Mobile.Auth.User.Roles |
Roles associated with this principal.
◆ AccessToken
| string AeroGear.Mobile.Auth.User.AccessToken |
|
get |
Gets the access token.
Access token for http request authorisation.
◆ Email
| string AeroGear.Mobile.Auth.User.Email |
|
get |
Gets the email.
The email associated with this user.
◆ Firstname
| string AeroGear.Mobile.Auth.User.Firstname |
|
get |
Gets the firstname.
The first name of the principal.
◆ IdentityToken
| string AeroGear.Mobile.Auth.User.IdentityToken |
|
get |
Gets the identity token.
Identity token. It is used for logout.
◆ Lastname
| string AeroGear.Mobile.Auth.User.Lastname |
|
get |
Gets the lastname.
The last name of the principal.
◆ RefreshToken
| string AeroGear.Mobile.Auth.User.RefreshToken |
|
get |
Gets the refresh token.
The refresh token.
◆ Username
| string AeroGear.Mobile.Auth.User.Username |
|
get |
Gets the username.
The username of the principal.
The documentation for this class was generated from the following file: