Class TokenRequest
Class TokenRequest.
Inheritance
System.Object
TokenRequest
Namespace: ISynergy.Framework.Core.Models
Assembly: ISynergy.Framework.Core.dll
Syntax
public class TokenRequest : object
Constructors
View SourceTokenRequest(String, IEnumerable<KeyValuePair<String, String>>, IEnumerable<String>, TimeSpan)
Initializes a new instance of the TokenRequest class.
Declaration
public TokenRequest(string username, IEnumerable<KeyValuePair<string, string>> claims, IEnumerable<string> roles, TimeSpan expiration)
Parameters
Type | Name | Description |
---|---|---|
System.String | username | The username. |
IEnumerable<KeyValuePair<System.String, System.String>> | claims | The claims. |
IEnumerable<System.String> | roles | The roles. |
TimeSpan | expiration | The expiration. |
Properties
View SourceClaims
Gets the claims.
Declaration
public IEnumerable<KeyValuePair<string, string>> Claims { get; }
Property Value
Type | Description |
---|---|
IEnumerable<KeyValuePair<System.String, System.String>> | The claims. |
Expiration
Gets the expiration.
Declaration
public TimeSpan Expiration { get; }
Property Value
Type | Description |
---|---|
TimeSpan | The expiration. |
Roles
Gets the roles.
Declaration
public IEnumerable<string> Roles { get; }
Property Value
Type | Description |
---|---|
IEnumerable<System.String> | The roles. |
Username
Gets the username.
Declaration
public string Username { get; }
Property Value
Type | Description |
---|---|
System.String | The username. |