auth

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package auth provides OAuth2 token source implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth0TokenSource

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

Auth0TokenSource implements oauth2.TokenSource using Auth0 SDK with private key JWT (client_assertion).

func NewAuth0TokenSource

func NewAuth0TokenSource(ctx context.Context, authConfig *authentication.Authentication, audience, scope string) *Auth0TokenSource

NewAuth0TokenSource creates a new Auth0 M2M token source using client assertion (private key JWT).

func (*Auth0TokenSource) Token

func (a *Auth0TokenSource) Token() (*oauth2.Token, error)

Token implements the oauth2.TokenSource interface.

Jump to

Keyboard shortcuts

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