token

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateInternalToken

func GenerateInternalToken(authConfig *temporal.InternalAuthConfig) (string, error)

Types

type HMACTokenKeyProvider

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

func NewHMACTokenKeyProvider

func NewHMACTokenKeyProvider(authConfig *temporal.InternalAuthConfig) *HMACTokenKeyProvider

func (*HMACTokenKeyProvider) Close

func (h *HMACTokenKeyProvider) Close()

func (*HMACTokenKeyProvider) EcdsaKey

func (h *HMACTokenKeyProvider) EcdsaKey(alg string, kid string) (*ecdsa.PublicKey, error)

func (*HMACTokenKeyProvider) HmacKey

func (h *HMACTokenKeyProvider) HmacKey(alg string, kid string) ([]byte, error)

func (*HMACTokenKeyProvider) RsaKey

func (h *HMACTokenKeyProvider) RsaKey(alg string, kid string) (*rsa.PublicKey, error)

func (*HMACTokenKeyProvider) SupportedMethods

func (h *HMACTokenKeyProvider) SupportedMethods() []string

type TemporalClaims

type TemporalClaims struct {
	*jwt.RegisteredClaims

	Permissions []string `json:"permissions"`
}

Jump to

Keyboard shortcuts

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