persistent

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 22 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 {
	Audience              string
	IssuedAt              time.Time
	NotBefore             time.Time
	ExpiresAt             time.Time
	UserID                string
	UserName              string
	UserEmail             string
	UserGroups            []string
	Picture               string
	AuthProviderName      string
	AuthProviderNamespace string
	AuthProviderUserID    string
	HashedSessionID       string
}

type TokenService

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

func NewTokenService

func NewTokenService(ctx context.Context, serverURL string, gatewayClient *client.Client, dispatcher *dispatcher.Dispatcher, gptClient *gptscript.GPTScript) (*TokenService, error)

func (*TokenService) AuthenticateRequest

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

func (*TokenService) NewToken

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

func (*TokenService) ReplaceJWK

func (t *TokenService) ReplaceJWK(req api.Context) error

func (*TokenService) ServeJWKS

func (t *TokenService) ServeJWKS(api api.Context) error

Jump to

Keyboard shortcuts

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