jwt

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package jwt implements an oauth2.JWTokenSource implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTokenSource

func CreateTokenSource(credentials *config.CredentialsConfig) (oauth2.TokenSource, error)

func CreateTokenSourceFromPrivateKey

func CreateTokenSourceFromPrivateKey(privateKeyJWK any, clientID string) (oauth2.TokenSource, error)

func JWTokenSource

func JWTokenSource(secretKey []byte, pem bool, clientID string,
	tokenLifetime time.Duration) (oauth2.TokenSource, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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