auth

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

+gengo:operator:register=R +gengo:operator:tag=auth

Package auth GENERATED BY gengo:operator DON'T EDIT THIS FILE

Package auth GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ExchangeToken

type ExchangeToken struct {
	courierhttp.MethodPost `path:"/token"`
	TokenExchanger
}

func (*ExchangeToken) EndpointRole

func (r *ExchangeToken) EndpointRole() string

func (*ExchangeToken) Output

func (r *ExchangeToken) Output(ctx context.Context) (any, error)

func (*ExchangeToken) ResponseContent

func (*ExchangeToken) ResponseContent() any

func (*ExchangeToken) ResponseErrors

func (*ExchangeToken) ResponseErrors() []error

func (ExchangeToken) RuntimeDoc

func (v ExchangeToken) RuntimeDoc(names ...string) ([]string, bool)

type ExchangeTokenAlias

type ExchangeTokenAlias struct {
	courierhttp.MethodGet `path:"/token"`
	Authorization         string `name:"Authorization,omitempty" in:"header"`
	TokenExchanger
}

func (*ExchangeTokenAlias) Output

func (a *ExchangeTokenAlias) Output(ctx context.Context) (any, error)

func (*ExchangeTokenAlias) ResponseContent

func (*ExchangeTokenAlias) ResponseContent() any

func (*ExchangeTokenAlias) ResponseErrors

func (*ExchangeTokenAlias) ResponseErrors() []error

func (ExchangeTokenAlias) RuntimeDoc

func (v ExchangeTokenAlias) RuntimeDoc(names ...string) ([]string, bool)

type Qrcode

type Qrcode struct {
	courierhttp.MethodGet `path:"/qrcode"`
}

func (*Qrcode) Output

func (r *Qrcode) Output(ctx context.Context) (any, error)

func (*Qrcode) ResponseContent

func (*Qrcode) ResponseContent() any

func (Qrcode) RuntimeDoc

func (v Qrcode) RuntimeDoc(names ...string) ([]string, bool)

type TokenExchanger

type TokenExchanger struct {
	ClientID     string `name:"client_id,omitempty" in:"query"`
	GrantType    string `name:"grant_type,omitempty" in:"query"`
	RefreshToken string `name:"refresh_token,omitempty" in:"query"`
	Scope        string `name:"scope,omitempty" in:"query"`
}

func (*TokenExchanger) Exchange

func (ex *TokenExchanger) Exchange(ctx context.Context, ax *agent.Agent) (any, error)

func (TokenExchanger) RuntimeDoc

func (v TokenExchanger) RuntimeDoc(names ...string) ([]string, bool)

Directories

Path Synopsis
Package operator GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package operator GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Jump to

Keyboard shortcuts

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