strategies

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLoggingErrorStrategy

func DefaultLoggingErrorStrategy(err error, w http.ResponseWriter)

Types

type DefaultStrategy

type DefaultStrategy struct {
	SecretStore sdk.ISecretStore
	Config      *sdk.Config
	HmacKey     string
}

func NewDefaultStrategy

func NewDefaultStrategy(secretStore sdk.ISecretStore, config *sdk.Config) *DefaultStrategy

func (*DefaultStrategy) GenerateAccessToken

func (ds *DefaultStrategy) GenerateAccessToken() (token string, signature string)

func (*DefaultStrategy) GenerateAuthCode

func (ds *DefaultStrategy) GenerateAuthCode() (code string, signature string)

func (*DefaultStrategy) GenerateIDToken

func (ds *DefaultStrategy) GenerateIDToken(ctx context.Context, profile sdk.RequestProfile, client sdk.IClient, expiry time.Time,
	transactionClaims map[string]interface{}, tokens sdk.Tokens) (string, error)

func (*DefaultStrategy) GenerateRefreshToken

func (ds *DefaultStrategy) GenerateRefreshToken() (token string, signature string)

func (*DefaultStrategy) SignAccessToken

func (ds *DefaultStrategy) SignAccessToken(token string) (signature string, err error)

func (*DefaultStrategy) SignAuthCode

func (ds *DefaultStrategy) SignAuthCode(code string) (signature string, err error)

func (*DefaultStrategy) SignRefreshToken

func (ds *DefaultStrategy) SignRefreshToken(token string) (signature string, err error)

func (*DefaultStrategy) ValidateOwnJWTToken added in v0.8.0

func (ds *DefaultStrategy) ValidateOwnJWTToken(ctx context.Context, token string) (clientId string, username string, err error)

Jump to

Keyboard shortcuts

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