auth

package
v1.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthInterface

type AuthInterface interface {
	GetKeys() []common.JWTKey
	GetCurrentKey() common.JWTKey
	RotateKeys(context.Context) error
	RefreshKeys(context.Context, bool) ([]common.JWTKey, error)
}

AuthInterface will contain interface to interact with different auth providers.

func AuthProvider

func AuthProvider(ctx context.Context, mode string, store common.Datastore) (AuthInterface, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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