auth0

package module
v0.0.0-...-e2c53ed Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

Package cloudeng.io/webapp/webauth/auth0

import cloudeng.io/webapp/webauth/auth0

Types

Type Authenticator
type Authenticator struct {
	// contains filtered or unexported fields
}
Functions
func NewAuthenticator(domain, audience string, opts ...Option) (*Authenticator, error)
Methods
func (a *Authenticator) CheckJWT(token string) error
Type JWKS
type JWKS struct {
	*jose.JSONWebKeySet
}

JWKS represents the KWT Key Set returned by auth0.com. See https://auth0.com/docs/tokens/json-web-tokens/json-web-key-set-properties

Functions
func JWKSForDomain(tenant string) (*JWKS, error)
Type Option
type Option func(*Authenticator)
Functions
func RS256() Option
func StaticJWKS(jwks *JWKS) Option

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	// contains filtered or unexported fields
}

func NewAuthenticator

func NewAuthenticator(domain, audience string, opts ...Option) (*Authenticator, error)

func (*Authenticator) CheckJWT

func (a *Authenticator) CheckJWT(token string) error

type JWKS

type JWKS struct {
	*jose.JSONWebKeySet
}

JWKS represents the KWT Key Set returned by auth0.com. See https://auth0.com/docs/tokens/json-web-tokens/json-web-key-set-properties

func JWKSForDomain

func JWKSForDomain(tenant string) (*JWKS, error)

type Option

type Option func(*Authenticator)

func RS256

func RS256() Option

func StaticJWKS

func StaticJWKS(jwks *JWKS) Option

Jump to

Keyboard shortcuts

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