Documentation ¶
Index ¶
Constants ¶
View Source
const ( // JWKS for Azure AD // Source: https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration AzureAdJwksUri = "https://login.microsoftonline.com/common/discovery/v2.0/keys" AzureAdV2IssuerFormat = "https://login.microsoftonline.com/" + azureAdTenantIdToken + "/v2.0/" AzureAdV1IssuerFormat = "https://sts.windows.net/" + azureAdTenantIdToken + "/" )
Variables ¶
This section is empty.
Functions ¶
func FetchAzureADKeySet ¶
fetchs the Azure AD key set
func GetAzureAdIssuers ¶
Types ¶
type JwtTokenVerifier ¶
type JwtTokenVerifier interface { // Verifies a jwt token Verify(ctx context.Context) (*jwt.Token, error) }
Verify JWT tokens
func NewJwtTokenVerifier ¶
func NewJwtTokenVerifier(rawToken *string, parameters *JwtTokenValidationParameters) JwtTokenVerifier
Creates a new JWT token verifier
Click to show internal directories.
Click to hide internal directories.