device

package
v0.0.28 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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OPENAPI_TAGS = []api.Tag{
		{Name: "Device Code Grant", Description: "The device code grant flow"},
	}
)

Functions

func NewPostCodeEndpoint

func NewPostCodeEndpoint() endpoint.EndpointHandler

func NewPostTokenEndpoint

func NewPostTokenEndpoint() endpoint.EndpointHandler

Types

type PostCodeEndpoint

type PostCodeEndpoint struct {
	endpoint.Endpoint
}

https://golang.org/doc/effective_go#embedding

func (PostCodeEndpoint) ServeHTTP

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

type PostCodeRequest

type PostCodeRequest struct {
	ClientId string `form:"client_id" validate:"required" oas-desc:"The client id"`
	Scope    string `form:"client_id" oas-desc:"The scopes"`
}

type PostCodeResponse

type PostCodeResponse struct {
	DeviceCode      string `` /* 139-byte string literal not displayed */
	VerificationUri string `` /* 131-byte string literal not displayed */
	UserCode        string `json:"user_code" validate:"required" oas-desc:"This is the text the user will enter at the verification uri."`
	ExpiresIn       int    `` /* 211-byte string literal not displayed */
	Interval        int    `` /* 150-byte string literal not displayed */
}

type PostTokenEndpoint

type PostTokenEndpoint struct {
	endpoint.Endpoint
}

https://golang.org/doc/effective_go#embedding

func (PostTokenEndpoint) ServeHTTP

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

type PostTokenError

type PostTokenError struct {
	Error            string `json:"error"`
	ErrorDescription string `json:"error_description,omitempty"`
}

type PostTokenRequest

type PostTokenRequest struct {
	ClientId   string `form:"client_id" validate:"required" oas-desc:"The client id"`
	DeviceCode string `form:"device_code" validate:"required" oas-desc:"The device code"`
	GrantType  string `form:"grant_type" validate:"required" oas-desc:"The grant type"`
}

Jump to

Keyboard shortcuts

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