...

Package jwtverifier

import "github.com/okta/okta-jwt-verifier-golang"
Overview
Index
Subdirectories

Overview ▾

type Jwt

type Jwt struct {
    Claims map[string]interface{}
}

type JwtVerifier

type JwtVerifier struct {
    Issuer string

    ClaimsToValidate map[string]string

    Discovery discovery.Discovery

    Adaptor adaptors.Adaptor

    // Cache allows customization of the cache used to store resources
    Cache func(func(string) (interface{}, error)) (utils.Cacher, error)
    // contains filtered or unexported fields
}

func (*JwtVerifier) GetAdaptor

func (j *JwtVerifier) GetAdaptor() adaptors.Adaptor

func (*JwtVerifier) GetDiscovery

func (j *JwtVerifier) GetDiscovery() discovery.Discovery

func (*JwtVerifier) New

func (j *JwtVerifier) New() *JwtVerifier

func (*JwtVerifier) SetLeeway

func (j *JwtVerifier) SetLeeway(duration string)

func (*JwtVerifier) VerifyAccessToken

func (j *JwtVerifier) VerifyAccessToken(jwt string) (*Jwt, error)

func (*JwtVerifier) VerifyIdToken

func (j *JwtVerifier) VerifyIdToken(jwt string) (*Jwt, error)

Subdirectories

Name Synopsis
..
adaptors
lestrratGoJwx
discovery
oidc
errors
utils based on https://datatracker.ietf.org/doc/html/rfc7636