Class RestrictedTokenOptions
Options for GenerateRestrictedTokenAsync(RestrictedTokenOptions).
Inherited Members
Namespace: Unity.Services.Authentication
Assembly: Unity.Services.Authentication.dll
Syntax
public class RestrictedTokenOptions
Properties
Services
Restricts which services can accept the issued token. Refer to the documentation of the service the token is intended for to determine the value to use.
Declaration
public List<string> Services { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> |
SingleUse
When true, the issued token can only be used once.
Declaration
public bool SingleUse { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
TtlSeconds
Requested lifetime of the issued token in seconds. Leave null to use the
server default.
Declaration
public long? TtlSeconds { get; set; }
Property Value
| Type | Description |
|---|---|
| long? |