jwt

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: Apache-2.0 Imports: 8 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 {
	Namespace         string
	RunID             string
	ThreadID          string
	ProjectID         string
	TopLevelProjectID string
	ModelProvider     string
	Model             string
	AgentID           string
	WorkflowID        string
	WorkflowStepID    string
	Scope             string
	UserID            string
	UserName          string
	UserEmail         string
	UserGroups        []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