models

package
v0.0.0-...-7296598 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthorizationPending = "authorization_pending"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceTokenResponse

type DeviceTokenResponse struct {
	UserCode        string `json:"user_code,omitempty"`
	DeviceCode      string `json:"device_code,omitempty"`
	VerificationURL string `json:"verification_url,omitempty"`
	ExpiresIn       int64  `json:"expires_in,omitempty"`
	Interval        int64  `json:"interval,omitempty"`
	Message         string `json:"message,omitempty"`
}

type TokenErrorResponse

type TokenErrorResponse struct {
	Error            string  `json:"error,omitempty"`
	ErrorDescription string  `json:"error_description,omitempty"`
	ErrorCodes       []int64 `json:"error_codes,omitempty"`
	Timestamp        string  `json:"timestamp,omitempty"`
	TraceID          string  `json:"trace_id,omitempty"`
	CorrelationID    string  `json:"correlation_id,omitempty"`
	ErrorUri         string  `json:"error_uri,omitempty"`
}

type TokenSucessResponse

type TokenSucessResponse struct {
	TokenType    string `json:"token_type,omitempty"`
	Scope        string `json:"scope,omitempty"`
	ExpiresIn    int64  `json:"expires_in,omitempty"`
	ExtExpiresIn int64  `json:"ext_expires_in,omitempty"`
	AccessToken  string `json:"access_token,omitempty"`
	RefreshToken string `json:"refresh_token,omitempty"`
	IDToken      string `json:"id_token,omitempty"`
}

Jump to

Keyboard shortcuts

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