oidcutils

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareIssuerURLs

func CompareIssuerURLs(a, b string) bool

CompareIssuerURLs compares two issuer urls. Issuer urls are also accepted as equal if they only differ in a trailing slash.

func ParseJWT

func ParseJWT(token, jwksURI string) (*jwt.Token, error)

ParseJWT parses a JWT

func TokenIsJWT

func TokenIsJWT(token, jwksURI string) (bool, error)

TokenIsJWT checks if a given token is a JWT and if it is correctly signed by the issuer.

func VerifyATHash

func VerifyATHash(idToken *jwt.Token, atHash, at string) (bool, error)

VerifyATHash verifies that the at_hash claim of the ID token is correct

func VerifyAudience

func VerifyAudience(claims jwt.MapClaims, aud string) bool

VerifyAudience verifies if the given audience is included in the audiences in the given jwt.MapClaims.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL