jwt

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenContext

type TokenContext struct {
	RunID          string
	ThreadID       string
	AgentID        string
	WorkflowID     string
	WorkflowStepID string
	Scope          string
	UserID         string
	UserName       string
	UserEmail      string
}

type TokenService

type TokenService struct{}

func (*TokenService) AuthenticateRequest

func (t *TokenService) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error)

func (*TokenService) DecodeToken

func (t *TokenService) DecodeToken(token string) (*TokenContext, error)

func (*TokenService) NewToken

func (t *TokenService) NewToken(context TokenContext) (string, error)

Jump to

Keyboard shortcuts

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