authentication

package
v0.0.0-...-b394ddd Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const AuthorizeFoundCode int = 302

AuthorizeFoundCode is the HTTP code returned for type AuthorizeFound

View Source
const AuthorizeInternalServerErrorCode int = 500

AuthorizeInternalServerErrorCode is the HTTP code returned for type AuthorizeInternalServerError

View Source
const AuthorizeUnauthorizedCode int = 401

AuthorizeUnauthorizedCode is the HTTP code returned for type AuthorizeUnauthorized

View Source
const AuthorizeUnprocessableEntityCode int = 422

AuthorizeUnprocessableEntityCode is the HTTP code returned for type AuthorizeUnprocessableEntity

View Source
const CallbackInternalServerErrorCode int = 500

CallbackInternalServerErrorCode is the HTTP code returned for type CallbackInternalServerError

View Source
const CallbackOKCode int = 200

CallbackOKCode is the HTTP code returned for type CallbackOK

View Source
const CallbackUnauthorizedCode int = 401

CallbackUnauthorizedCode is the HTTP code returned for type CallbackUnauthorized

View Source
const CallbackUnprocessableEntityCode int = 422

CallbackUnprocessableEntityCode is the HTTP code returned for type CallbackUnprocessableEntity

View Source
const LoginFoundCode int = 302

LoginFoundCode is the HTTP code returned for type LoginFound

View Source
const LoginInternalServerErrorCode int = 500

LoginInternalServerErrorCode is the HTTP code returned for type LoginInternalServerError

View Source
const TokenInfoInternalServerErrorCode int = 500

TokenInfoInternalServerErrorCode is the HTTP code returned for type TokenInfoInternalServerError

View Source
const TokenInfoOKCode int = 200

TokenInfoOKCode is the HTTP code returned for type TokenInfoOK

View Source
const TokenInfoUnauthorizedCode int = 401

TokenInfoUnauthorizedCode is the HTTP code returned for type TokenInfoUnauthorized

View Source
const TokenRefreshInternalServerErrorCode int = 500

TokenRefreshInternalServerErrorCode is the HTTP code returned for type TokenRefreshInternalServerError

View Source
const TokenRefreshOKCode int = 200

TokenRefreshOKCode is the HTTP code returned for type TokenRefreshOK

View Source
const TokenRefreshUnauthorizedCode int = 401

TokenRefreshUnauthorizedCode is the HTTP code returned for type TokenRefreshUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorize

type Authorize struct {
	Context *middleware.Context
	Handler AuthorizeHandler
}
Authorize swagger:route GET /auth/authorize Authentication authorize

Handle authentication

Handle authorization API response, authenticate user and redirect to client.

func NewAuthorize

func NewAuthorize(ctx *middleware.Context, handler AuthorizeHandler) *Authorize

NewAuthorize creates a new http.Handler for the authorize operation

func (*Authorize) ServeHTTP

func (o *Authorize) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type AuthorizeFound

type AuthorizeFound struct {
}

AuthorizeFound Found

swagger:response authorizeFound

func NewAuthorizeFound

func NewAuthorizeFound() *AuthorizeFound

NewAuthorizeFound creates AuthorizeFound with default headers values

func (*AuthorizeFound) WriteResponse

func (o *AuthorizeFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AuthorizeHandler

type AuthorizeHandler interface {
	Handle(AuthorizeParams) middleware.Responder
}

AuthorizeHandler interface for that can handle valid authorize params

type AuthorizeHandlerFunc

type AuthorizeHandlerFunc func(AuthorizeParams) middleware.Responder

AuthorizeHandlerFunc turns a function with the right signature into a authorize handler

func (AuthorizeHandlerFunc) Handle

Handle executing the request and returning a response

type AuthorizeInternalServerError

type AuthorizeInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

AuthorizeInternalServerError Internal Server Error

swagger:response authorizeInternalServerError

func NewAuthorizeInternalServerError

func NewAuthorizeInternalServerError() *AuthorizeInternalServerError

NewAuthorizeInternalServerError creates AuthorizeInternalServerError with default headers values

func (*AuthorizeInternalServerError) SetPayload

func (o *AuthorizeInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the authorize internal server error response

func (*AuthorizeInternalServerError) WithPayload

WithPayload adds the payload to the authorize internal server error response

func (*AuthorizeInternalServerError) WriteResponse

func (o *AuthorizeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AuthorizeParams

type AuthorizeParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

AuthorizeParams contains all the bound params for the authorize operation typically these are obtained from a http.Request

swagger:parameters authorize

func NewAuthorizeParams

func NewAuthorizeParams() AuthorizeParams

NewAuthorizeParams creates a new AuthorizeParams object

There are no default values defined in the spec.

func (*AuthorizeParams) BindRequest

func (o *AuthorizeParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewAuthorizeParams() beforehand.

type AuthorizeURL

type AuthorizeURL struct {
	// contains filtered or unexported fields
}

AuthorizeURL generates an URL for the authorize operation

func (*AuthorizeURL) Build

func (o *AuthorizeURL) Build() (*url.URL, error)

Build a url path and query string

func (*AuthorizeURL) BuildFull

func (o *AuthorizeURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*AuthorizeURL) Must

func (o *AuthorizeURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*AuthorizeURL) SetBasePath

func (o *AuthorizeURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*AuthorizeURL) String

func (o *AuthorizeURL) String() string

String returns the string representation of the path with query string

func (*AuthorizeURL) StringFull

func (o *AuthorizeURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*AuthorizeURL) WithBasePath

func (o *AuthorizeURL) WithBasePath(bp string) *AuthorizeURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type AuthorizeUnauthorized

type AuthorizeUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

AuthorizeUnauthorized Unauthorized

swagger:response authorizeUnauthorized

func NewAuthorizeUnauthorized

func NewAuthorizeUnauthorized() *AuthorizeUnauthorized

NewAuthorizeUnauthorized creates AuthorizeUnauthorized with default headers values

func (*AuthorizeUnauthorized) SetPayload

func (o *AuthorizeUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the authorize unauthorized response

func (*AuthorizeUnauthorized) WithPayload

func (o *AuthorizeUnauthorized) WithPayload(payload *models.Error) *AuthorizeUnauthorized

WithPayload adds the payload to the authorize unauthorized response

func (*AuthorizeUnauthorized) WriteResponse

func (o *AuthorizeUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AuthorizeUnprocessableEntity

type AuthorizeUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

AuthorizeUnprocessableEntity Unprocessable Entity

swagger:response authorizeUnprocessableEntity

func NewAuthorizeUnprocessableEntity

func NewAuthorizeUnprocessableEntity() *AuthorizeUnprocessableEntity

NewAuthorizeUnprocessableEntity creates AuthorizeUnprocessableEntity with default headers values

func (*AuthorizeUnprocessableEntity) SetPayload

func (o *AuthorizeUnprocessableEntity) SetPayload(payload *models.Error)

SetPayload sets the payload to the authorize unprocessable entity response

func (*AuthorizeUnprocessableEntity) WithPayload

WithPayload adds the payload to the authorize unprocessable entity response

func (*AuthorizeUnprocessableEntity) WriteResponse

func (o *AuthorizeUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type Callback

type Callback struct {
	Context *middleware.Context
	Handler CallbackHandler
}
Callback swagger:route GET /auth/callback Authentication callback

Authenticate user

Authenticate a user with an authorization code.

func NewCallback

func NewCallback(ctx *middleware.Context, handler CallbackHandler) *Callback

NewCallback creates a new http.Handler for the callback operation

func (*Callback) ServeHTTP

func (o *Callback) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CallbackHandler

type CallbackHandler interface {
	Handle(CallbackParams) middleware.Responder
}

CallbackHandler interface for that can handle valid callback params

type CallbackHandlerFunc

type CallbackHandlerFunc func(CallbackParams) middleware.Responder

CallbackHandlerFunc turns a function with the right signature into a callback handler

func (CallbackHandlerFunc) Handle

Handle executing the request and returning a response

type CallbackInternalServerError

type CallbackInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

CallbackInternalServerError Internal Server Error

swagger:response callbackInternalServerError

func NewCallbackInternalServerError

func NewCallbackInternalServerError() *CallbackInternalServerError

NewCallbackInternalServerError creates CallbackInternalServerError with default headers values

func (*CallbackInternalServerError) SetPayload

func (o *CallbackInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the callback internal server error response

func (*CallbackInternalServerError) WithPayload

WithPayload adds the payload to the callback internal server error response

func (*CallbackInternalServerError) WriteResponse

func (o *CallbackInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CallbackOK

type CallbackOK struct {

	/*
	  In: Body
	*/
	Payload *models.Token `json:"body,omitempty"`
}

CallbackOK OK

swagger:response callbackOK

func NewCallbackOK

func NewCallbackOK() *CallbackOK

NewCallbackOK creates CallbackOK with default headers values

func (*CallbackOK) SetPayload

func (o *CallbackOK) SetPayload(payload *models.Token)

SetPayload sets the payload to the callback o k response

func (*CallbackOK) WithPayload

func (o *CallbackOK) WithPayload(payload *models.Token) *CallbackOK

WithPayload adds the payload to the callback o k response

func (*CallbackOK) WriteResponse

func (o *CallbackOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CallbackParams

type CallbackParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

CallbackParams contains all the bound params for the callback operation typically these are obtained from a http.Request

swagger:parameters callback

func NewCallbackParams

func NewCallbackParams() CallbackParams

NewCallbackParams creates a new CallbackParams object

There are no default values defined in the spec.

func (*CallbackParams) BindRequest

func (o *CallbackParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCallbackParams() beforehand.

type CallbackURL

type CallbackURL struct {
	// contains filtered or unexported fields
}

CallbackURL generates an URL for the callback operation

func (*CallbackURL) Build

func (o *CallbackURL) Build() (*url.URL, error)

Build a url path and query string

func (*CallbackURL) BuildFull

func (o *CallbackURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CallbackURL) Must

func (o *CallbackURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CallbackURL) SetBasePath

func (o *CallbackURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CallbackURL) String

func (o *CallbackURL) String() string

String returns the string representation of the path with query string

func (*CallbackURL) StringFull

func (o *CallbackURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CallbackURL) WithBasePath

func (o *CallbackURL) WithBasePath(bp string) *CallbackURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type CallbackUnauthorized

type CallbackUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

CallbackUnauthorized Unprocessable Entity

swagger:response callbackUnauthorized

func NewCallbackUnauthorized

func NewCallbackUnauthorized() *CallbackUnauthorized

NewCallbackUnauthorized creates CallbackUnauthorized with default headers values

func (*CallbackUnauthorized) SetPayload

func (o *CallbackUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the callback unauthorized response

func (*CallbackUnauthorized) WithPayload

func (o *CallbackUnauthorized) WithPayload(payload *models.Error) *CallbackUnauthorized

WithPayload adds the payload to the callback unauthorized response

func (*CallbackUnauthorized) WriteResponse

func (o *CallbackUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CallbackUnprocessableEntity

type CallbackUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

CallbackUnprocessableEntity Unprocessable Entity

swagger:response callbackUnprocessableEntity

func NewCallbackUnprocessableEntity

func NewCallbackUnprocessableEntity() *CallbackUnprocessableEntity

NewCallbackUnprocessableEntity creates CallbackUnprocessableEntity with default headers values

func (*CallbackUnprocessableEntity) SetPayload

func (o *CallbackUnprocessableEntity) SetPayload(payload *models.Error)

SetPayload sets the payload to the callback unprocessable entity response

func (*CallbackUnprocessableEntity) WithPayload

WithPayload adds the payload to the callback unprocessable entity response

func (*CallbackUnprocessableEntity) WriteResponse

func (o *CallbackUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type Login

type Login struct {
	Context *middleware.Context
	Handler LoginHandler
}
Login swagger:route GET /auth/login Authentication login

Login user

Login a user with redirection.

func NewLogin

func NewLogin(ctx *middleware.Context, handler LoginHandler) *Login

NewLogin creates a new http.Handler for the login operation

func (*Login) ServeHTTP

func (o *Login) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type LoginFound

type LoginFound struct {
}

LoginFound Found

swagger:response loginFound

func NewLoginFound

func NewLoginFound() *LoginFound

NewLoginFound creates LoginFound with default headers values

func (*LoginFound) WriteResponse

func (o *LoginFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type LoginHandler

type LoginHandler interface {
	Handle(LoginParams) middleware.Responder
}

LoginHandler interface for that can handle valid login params

type LoginHandlerFunc

type LoginHandlerFunc func(LoginParams) middleware.Responder

LoginHandlerFunc turns a function with the right signature into a login handler

func (LoginHandlerFunc) Handle

Handle executing the request and returning a response

type LoginInternalServerError

type LoginInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

LoginInternalServerError Internal Server Error

swagger:response loginInternalServerError

func NewLoginInternalServerError

func NewLoginInternalServerError() *LoginInternalServerError

NewLoginInternalServerError creates LoginInternalServerError with default headers values

func (*LoginInternalServerError) SetPayload

func (o *LoginInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the login internal server error response

func (*LoginInternalServerError) WithPayload

WithPayload adds the payload to the login internal server error response

func (*LoginInternalServerError) WriteResponse

func (o *LoginInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type LoginParams

type LoginParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

LoginParams contains all the bound params for the login operation typically these are obtained from a http.Request

swagger:parameters login

func NewLoginParams

func NewLoginParams() LoginParams

NewLoginParams creates a new LoginParams object

There are no default values defined in the spec.

func (*LoginParams) BindRequest

func (o *LoginParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewLoginParams() beforehand.

type LoginURL

type LoginURL struct {
	// contains filtered or unexported fields
}

LoginURL generates an URL for the login operation

func (*LoginURL) Build

func (o *LoginURL) Build() (*url.URL, error)

Build a url path and query string

func (*LoginURL) BuildFull

func (o *LoginURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*LoginURL) Must

func (o *LoginURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*LoginURL) SetBasePath

func (o *LoginURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*LoginURL) String

func (o *LoginURL) String() string

String returns the string representation of the path with query string

func (*LoginURL) StringFull

func (o *LoginURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*LoginURL) WithBasePath

func (o *LoginURL) WithBasePath(bp string) *LoginURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type TokenInfo

type TokenInfo struct {
	Context *middleware.Context
	Handler TokenInfoHandler
}
TokenInfo swagger:route GET /auth/token/info Authentication tokenInfo

Send token information

Send token information or unauthorized error response.

func NewTokenInfo

func NewTokenInfo(ctx *middleware.Context, handler TokenInfoHandler) *TokenInfo

NewTokenInfo creates a new http.Handler for the token info operation

func (*TokenInfo) ServeHTTP

func (o *TokenInfo) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type TokenInfoHandler

type TokenInfoHandler interface {
	Handle(TokenInfoParams) middleware.Responder
}

TokenInfoHandler interface for that can handle valid token info params

type TokenInfoHandlerFunc

type TokenInfoHandlerFunc func(TokenInfoParams) middleware.Responder

TokenInfoHandlerFunc turns a function with the right signature into a token info handler

func (TokenInfoHandlerFunc) Handle

Handle executing the request and returning a response

type TokenInfoInternalServerError

type TokenInfoInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

TokenInfoInternalServerError Internal Server Error

swagger:response tokenInfoInternalServerError

func NewTokenInfoInternalServerError

func NewTokenInfoInternalServerError() *TokenInfoInternalServerError

NewTokenInfoInternalServerError creates TokenInfoInternalServerError with default headers values

func (*TokenInfoInternalServerError) SetPayload

func (o *TokenInfoInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the token info internal server error response

func (*TokenInfoInternalServerError) WithPayload

WithPayload adds the payload to the token info internal server error response

func (*TokenInfoInternalServerError) WriteResponse

func (o *TokenInfoInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type TokenInfoOK

type TokenInfoOK struct {

	/*
	  In: Body
	*/
	Payload *models.TokenInfo `json:"body,omitempty"`
}

TokenInfoOK OK

swagger:response tokenInfoOK

func NewTokenInfoOK

func NewTokenInfoOK() *TokenInfoOK

NewTokenInfoOK creates TokenInfoOK with default headers values

func (*TokenInfoOK) SetPayload

func (o *TokenInfoOK) SetPayload(payload *models.TokenInfo)

SetPayload sets the payload to the token info o k response

func (*TokenInfoOK) WithPayload

func (o *TokenInfoOK) WithPayload(payload *models.TokenInfo) *TokenInfoOK

WithPayload adds the payload to the token info o k response

func (*TokenInfoOK) WriteResponse

func (o *TokenInfoOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type TokenInfoParams

type TokenInfoParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Bearer access token
	  Required: true
	  In: header
	*/
	Authorization string
}

TokenInfoParams contains all the bound params for the token info operation typically these are obtained from a http.Request

swagger:parameters tokenInfo

func NewTokenInfoParams

func NewTokenInfoParams() TokenInfoParams

NewTokenInfoParams creates a new TokenInfoParams object

There are no default values defined in the spec.

func (*TokenInfoParams) BindRequest

func (o *TokenInfoParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewTokenInfoParams() beforehand.

type TokenInfoURL

type TokenInfoURL struct {
	// contains filtered or unexported fields
}

TokenInfoURL generates an URL for the token info operation

func (*TokenInfoURL) Build

func (o *TokenInfoURL) Build() (*url.URL, error)

Build a url path and query string

func (*TokenInfoURL) BuildFull

func (o *TokenInfoURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*TokenInfoURL) Must

func (o *TokenInfoURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*TokenInfoURL) SetBasePath

func (o *TokenInfoURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*TokenInfoURL) String

func (o *TokenInfoURL) String() string

String returns the string representation of the path with query string

func (*TokenInfoURL) StringFull

func (o *TokenInfoURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*TokenInfoURL) WithBasePath

func (o *TokenInfoURL) WithBasePath(bp string) *TokenInfoURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type TokenInfoUnauthorized

type TokenInfoUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

TokenInfoUnauthorized Unauthorized

swagger:response tokenInfoUnauthorized

func NewTokenInfoUnauthorized

func NewTokenInfoUnauthorized() *TokenInfoUnauthorized

NewTokenInfoUnauthorized creates TokenInfoUnauthorized with default headers values

func (*TokenInfoUnauthorized) SetPayload

func (o *TokenInfoUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the token info unauthorized response

func (*TokenInfoUnauthorized) WithPayload

func (o *TokenInfoUnauthorized) WithPayload(payload *models.Error) *TokenInfoUnauthorized

WithPayload adds the payload to the token info unauthorized response

func (*TokenInfoUnauthorized) WriteResponse

func (o *TokenInfoUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type TokenRefresh

type TokenRefresh struct {
	Context *middleware.Context
	Handler TokenRefreshHandler
}
TokenRefresh swagger:route GET /auth/token/refresh Authentication tokenRefresh

Refresh token

Refresh expired token.

func NewTokenRefresh

func NewTokenRefresh(ctx *middleware.Context, handler TokenRefreshHandler) *TokenRefresh

NewTokenRefresh creates a new http.Handler for the token refresh operation

func (*TokenRefresh) ServeHTTP

func (o *TokenRefresh) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type TokenRefreshHandler

type TokenRefreshHandler interface {
	Handle(TokenRefreshParams) middleware.Responder
}

TokenRefreshHandler interface for that can handle valid token refresh params

type TokenRefreshHandlerFunc

type TokenRefreshHandlerFunc func(TokenRefreshParams) middleware.Responder

TokenRefreshHandlerFunc turns a function with the right signature into a token refresh handler

func (TokenRefreshHandlerFunc) Handle

Handle executing the request and returning a response

type TokenRefreshInternalServerError

type TokenRefreshInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

TokenRefreshInternalServerError Internal Server Error

swagger:response tokenRefreshInternalServerError

func NewTokenRefreshInternalServerError

func NewTokenRefreshInternalServerError() *TokenRefreshInternalServerError

NewTokenRefreshInternalServerError creates TokenRefreshInternalServerError with default headers values

func (*TokenRefreshInternalServerError) SetPayload

func (o *TokenRefreshInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the token refresh internal server error response

func (*TokenRefreshInternalServerError) WithPayload

WithPayload adds the payload to the token refresh internal server error response

func (*TokenRefreshInternalServerError) WriteResponse

func (o *TokenRefreshInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type TokenRefreshOK

type TokenRefreshOK struct {

	/*
	  In: Body
	*/
	Payload *models.Token `json:"body,omitempty"`
}

TokenRefreshOK OK

swagger:response tokenRefreshOK

func NewTokenRefreshOK

func NewTokenRefreshOK() *TokenRefreshOK

NewTokenRefreshOK creates TokenRefreshOK with default headers values

func (*TokenRefreshOK) SetPayload

func (o *TokenRefreshOK) SetPayload(payload *models.Token)

SetPayload sets the payload to the token refresh o k response

func (*TokenRefreshOK) WithPayload

func (o *TokenRefreshOK) WithPayload(payload *models.Token) *TokenRefreshOK

WithPayload adds the payload to the token refresh o k response

func (*TokenRefreshOK) WriteResponse

func (o *TokenRefreshOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type TokenRefreshParams

type TokenRefreshParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Bearer refresh token
	  Required: true
	  In: header
	*/
	Authorization string
}

TokenRefreshParams contains all the bound params for the token refresh operation typically these are obtained from a http.Request

swagger:parameters tokenRefresh

func NewTokenRefreshParams

func NewTokenRefreshParams() TokenRefreshParams

NewTokenRefreshParams creates a new TokenRefreshParams object

There are no default values defined in the spec.

func (*TokenRefreshParams) BindRequest

func (o *TokenRefreshParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewTokenRefreshParams() beforehand.

type TokenRefreshURL

type TokenRefreshURL struct {
	// contains filtered or unexported fields
}

TokenRefreshURL generates an URL for the token refresh operation

func (*TokenRefreshURL) Build

func (o *TokenRefreshURL) Build() (*url.URL, error)

Build a url path and query string

func (*TokenRefreshURL) BuildFull

func (o *TokenRefreshURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*TokenRefreshURL) Must

func (o *TokenRefreshURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*TokenRefreshURL) SetBasePath

func (o *TokenRefreshURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*TokenRefreshURL) String

func (o *TokenRefreshURL) String() string

String returns the string representation of the path with query string

func (*TokenRefreshURL) StringFull

func (o *TokenRefreshURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*TokenRefreshURL) WithBasePath

func (o *TokenRefreshURL) WithBasePath(bp string) *TokenRefreshURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type TokenRefreshUnauthorized

type TokenRefreshUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

TokenRefreshUnauthorized Unauthorized

swagger:response tokenRefreshUnauthorized

func NewTokenRefreshUnauthorized

func NewTokenRefreshUnauthorized() *TokenRefreshUnauthorized

NewTokenRefreshUnauthorized creates TokenRefreshUnauthorized with default headers values

func (*TokenRefreshUnauthorized) SetPayload

func (o *TokenRefreshUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the token refresh unauthorized response

func (*TokenRefreshUnauthorized) WithPayload

WithPayload adds the payload to the token refresh unauthorized response

func (*TokenRefreshUnauthorized) WriteResponse

func (o *TokenRefreshUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

Jump to

Keyboard shortcuts

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