Udostępnij za pośrednictwem


JwtAuthentication Class

Definition

Properties for access validation based on JSON Web Tokens (JWT).

[Newtonsoft.Json.JsonObject("#Microsoft.VideoAnalyzer.JwtAuthentication")]
public class JwtAuthentication : Microsoft.Azure.Management.VideoAnalyzer.Models.AuthenticationBase
[<Newtonsoft.Json.JsonObject("#Microsoft.VideoAnalyzer.JwtAuthentication")>]
type JwtAuthentication = class
    inherit AuthenticationBase
Public Class JwtAuthentication
Inherits AuthenticationBase
Inheritance
JwtAuthentication
Attributes
Newtonsoft.Json.JsonObjectAttribute

Constructors

JwtAuthentication()

Initializes a new instance of the JwtAuthentication class.

JwtAuthentication(IList<String>, IList<String>, IList<TokenClaim>, IList<TokenKey>)

Initializes a new instance of the JwtAuthentication class.

Properties

Audiences

Gets or sets list of expected token audiences. Token audience is valid if it matches at least one of the given values.

Claims

Gets or sets list of additional token claims to be validated. Token must contains all claims and respective values for it to be valid.

Issuers

Gets or sets list of expected token issuers. Token issuer is valid if it matches at least one of the given values.

Keys

Gets or sets list of keys which can be used to validate access tokens. Having multiple keys allow for seamless key rotation of the token signing key. Token signature must match exactly one key.

Applies to