browser

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OPENAPI_TAGS = []api.Tag{
		{Name: "Browser", Description: "Human UI endpoints"},
	}
)

Functions

func NewGetDeviceEndpoint

func NewGetDeviceEndpoint() endpoint.EndpointHandler

func NewGetRedirectEndpoint

func NewGetRedirectEndpoint() endpoint.EndpointHandler

func NewGetVerifyCodeEndpoint

func NewGetVerifyCodeEndpoint() endpoint.EndpointHandler

Types

type CodeVerifier

type CodeVerifier struct {
	Value string
}

func (*CodeVerifier) CodeChallengeS256

func (v *CodeVerifier) CodeChallengeS256() string

type DevicePageData

type DevicePageData struct {
	Code       string
	FormAction string
	PageTitle  string
}

type ErrorPage

type ErrorPage struct {
	PageTitle        string
	Error            string
	ErrorDescription string
}

type GetDeviceEndpoint

type GetDeviceEndpoint struct {
	endpoint.Endpoint
}

func (GetDeviceEndpoint) ServeHTTP

func (ep GetDeviceEndpoint) ServeHTTP(w http.ResponseWriter, r *http.Request)

type GetDeviceRequest

type GetDeviceRequest struct {
	Code string `query:"code"`
}

type GetRedirectEndpoint

type GetRedirectEndpoint struct {
	endpoint.Endpoint
}

func (GetRedirectEndpoint) ServeHTTP

func (ep GetRedirectEndpoint) ServeHTTP(w http.ResponseWriter, r *http.Request)

type GetRedirectRequest

type GetRedirectRequest struct {
	Code  string `query:"code" validate:"required"`
	State string `query:"state" validate:"required"`
}

type GetVerifyCodeEndpoint

type GetVerifyCodeEndpoint struct {
	endpoint.Endpoint
}

func (GetVerifyCodeEndpoint) ServeHTTP

type GetVerifyCodeRequest

type GetVerifyCodeRequest struct {
	Code string `query:"code" validate:"required"`
}

type SignedInData

type SignedInData struct {
	PageTitle string
}

type Token

type Token struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
	Scope       string `json:"scope"`
	TokenType   string `json:"token_type"`
}

type VerifyCodePageData

type VerifyCodePageData struct {
	Code       string
	FormAction string
	PageTitle  string
}

Jump to

Keyboard shortcuts

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