authtoken

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJWTServices

func NewJWTServices(config *AuthTokenConfig) internal.AuthTokenServices

Types

type AuthTokenConfig

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

func (*AuthTokenConfig) EncryptionSecretKey

func (c *AuthTokenConfig) EncryptionSecretKey() string

func (*AuthTokenConfig) ExpirationDuration

func (c *AuthTokenConfig) ExpirationDuration() time.Duration

func (*AuthTokenConfig) SigningSecretKey

func (c *AuthTokenConfig) SigningSecretKey() string

type AuthTokenConfigBuilder

type AuthTokenConfigBuilder interface {
	SetJWTSigningSecretKey(string) AuthTokenConfigBuilder
	SetJWTEncryptionSecretKey(string) AuthTokenConfigBuilder
	SetJWTExpirationDuration(time.Duration) AuthTokenConfigBuilder
	Build() *AuthTokenConfig
}

func NewAuthTokenConfigBuilder

func NewAuthTokenConfigBuilder() AuthTokenConfigBuilder

Jump to

Keyboard shortcuts

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