accesstoken

package
v0.0.0-...-86b2471 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

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(audience string, secret []byte, timeToLive time.Duration, identityStore auth.IdentityStore) (*Authenticator, error)

func (*Authenticator) Authenticate

func (a *Authenticator) Authenticate(ctx context.Context, bearerToken string) (interface{}, error)

func (*Authenticator) Issue

func (a *Authenticator) Issue(identity *auth.Identity) (accessToken string, err error)

func (*Authenticator) TimeToLive

func (a *Authenticator) TimeToLive() time.Duration

Jump to

Keyboard shortcuts

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