auth

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWorkflowServiceWrapper

func NewWorkflowServiceWrapper(service workflowserviceclient.Interface, authorizationProvider AuthorizationProvider) workflowserviceclient.Interface

NewWorkflowServiceWrapper creates

Types

type AuthorizationProvider

type AuthorizationProvider interface {
	// GetAuthToken provides the OAuth authorization token
	// It's called before every request to Cadence server, and sets the token in the request header.
	GetAuthToken() ([]byte, error)
}

type JWTClaims

type JWTClaims struct {
	jwt.RegisteredClaims

	Sub    string
	Name   string
	Groups string // separated by space
	Admin  bool
	TTL    int64
}

Jump to

Keyboard shortcuts

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