Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenContext ¶
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
Click to show internal directories.
Click to hide internal directories.