共用方式為


JwtAuthentication Constructors

Definition

Overloads

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.

JwtAuthentication()

Initializes a new instance of the JwtAuthentication class.

public JwtAuthentication ();
Public Sub New ()

Applies to

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

Initializes a new instance of the JwtAuthentication class.

public JwtAuthentication (System.Collections.Generic.IList<string> issuers = default, System.Collections.Generic.IList<string> audiences = default, System.Collections.Generic.IList<Microsoft.Azure.Management.VideoAnalyzer.Models.TokenClaim> claims = default, System.Collections.Generic.IList<Microsoft.Azure.Management.VideoAnalyzer.Models.TokenKey> keys = default);
new Microsoft.Azure.Management.VideoAnalyzer.Models.JwtAuthentication : System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.Management.VideoAnalyzer.Models.TokenClaim> * System.Collections.Generic.IList<Microsoft.Azure.Management.VideoAnalyzer.Models.TokenKey> -> Microsoft.Azure.Management.VideoAnalyzer.Models.JwtAuthentication
Public Sub New (Optional issuers As IList(Of String) = Nothing, Optional audiences As IList(Of String) = Nothing, Optional claims As IList(Of TokenClaim) = Nothing, Optional keys As IList(Of TokenKey) = Nothing)

Parameters

issuers
IList<String>

List of expected token issuers. Token issuer is valid if it matches at least one of the given values.

audiences
IList<String>

List of expected token audiences. Token audience is valid if it matches at least one of the given values.

claims
IList<TokenClaim>

List of additional token claims to be validated. Token must contains all claims and respective values for it to be valid.

keys
IList<TokenKey>

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