Documentation ¶
Index ¶
- func GenerateInternalToken(authConfig *temporal.InternalAuthConfig) (string, error)
- type HMACTokenKeyProvider
- func (h *HMACTokenKeyProvider) Close()
- func (h *HMACTokenKeyProvider) EcdsaKey(alg string, kid string) (*ecdsa.PublicKey, error)
- func (h *HMACTokenKeyProvider) HmacKey(alg string, kid string) ([]byte, error)
- func (h *HMACTokenKeyProvider) RsaKey(alg string, kid string) (*rsa.PublicKey, error)
- func (h *HMACTokenKeyProvider) SupportedMethods() []string
- type TemporalClaims
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) HmacKey ¶
func (h *HMACTokenKeyProvider) HmacKey(alg string, kid string) ([]byte, error)
func (*HMACTokenKeyProvider) SupportedMethods ¶
func (h *HMACTokenKeyProvider) SupportedMethods() []string
type TemporalClaims ¶
type TemporalClaims struct { *jwt.RegisteredClaims Permissions []string `json:"permissions"` }
Click to show internal directories.
Click to hide internal directories.