authentication

package
v0.19.104 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AuthenticateBadRequestCode int = 400

AuthenticateBadRequestCode is the HTTP code returned for type AuthenticateBadRequest

View Source
const AuthenticateForbiddenCode int = 403

AuthenticateForbiddenCode is the HTTP code returned for type AuthenticateForbidden

View Source
const AuthenticateMfaOKCode int = 200

AuthenticateMfaOKCode is the HTTP code returned for type AuthenticateMfaOK

View Source
const AuthenticateMfaUnauthorizedCode int = 401

AuthenticateMfaUnauthorizedCode is the HTTP code returned for type AuthenticateMfaUnauthorized

View Source
const AuthenticateOKCode int = 200

AuthenticateOKCode is the HTTP code returned for type AuthenticateOK

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticate

type Authenticate struct {
	Context *middleware.Context
	Handler AuthenticateHandler
}

Authenticate swagger:route POST /authenticate Authentication authenticate

Authenticate via a method supplied via a query string parameter

Allows authentication Methods include "password" and "cert"

func NewAuthenticate

func NewAuthenticate(ctx *middleware.Context, handler AuthenticateHandler) *Authenticate

NewAuthenticate creates a new http.Handler for the authenticate operation

func (*Authenticate) ServeHTTP

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

type AuthenticateBadRequest

type AuthenticateBadRequest struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

AuthenticateBadRequest The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

swagger:response authenticateBadRequest

func NewAuthenticateBadRequest

func NewAuthenticateBadRequest() *AuthenticateBadRequest

NewAuthenticateBadRequest creates AuthenticateBadRequest with default headers values

func (*AuthenticateBadRequest) SetPayload

func (o *AuthenticateBadRequest) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the authenticate bad request response

func (*AuthenticateBadRequest) WithPayload

WithPayload adds the payload to the authenticate bad request response

func (*AuthenticateBadRequest) WriteResponse

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

WriteResponse to the client

type AuthenticateForbidden

type AuthenticateForbidden struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

AuthenticateForbidden The authentication request could not be processed as the credentials are invalid

swagger:response authenticateForbidden

func NewAuthenticateForbidden

func NewAuthenticateForbidden() *AuthenticateForbidden

NewAuthenticateForbidden creates AuthenticateForbidden with default headers values

func (*AuthenticateForbidden) SetPayload

func (o *AuthenticateForbidden) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the authenticate forbidden response

func (*AuthenticateForbidden) WithPayload

WithPayload adds the payload to the authenticate forbidden response

func (*AuthenticateForbidden) WriteResponse

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

WriteResponse to the client

type AuthenticateHandler

type AuthenticateHandler interface {
	Handle(AuthenticateParams) middleware.Responder
}

AuthenticateHandler interface for that can handle valid authenticate params

type AuthenticateHandlerFunc

type AuthenticateHandlerFunc func(AuthenticateParams) middleware.Responder

AuthenticateHandlerFunc turns a function with the right signature into a authenticate handler

func (AuthenticateHandlerFunc) Handle

Handle executing the request and returning a response

type AuthenticateMfa added in v0.17.52

type AuthenticateMfa struct {
	Context *middleware.Context
	Handler AuthenticateMfaHandler
}

AuthenticateMfa swagger:route POST /authenticate/mfa Authentication MFA authenticateMfa

Complete MFA authentication

Completes MFA authentication by submitting a MFA time based one time token or backup code.

func NewAuthenticateMfa added in v0.17.52

func NewAuthenticateMfa(ctx *middleware.Context, handler AuthenticateMfaHandler) *AuthenticateMfa

NewAuthenticateMfa creates a new http.Handler for the authenticate mfa operation

func (*AuthenticateMfa) ServeHTTP added in v0.17.52

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

type AuthenticateMfaHandler added in v0.17.52

type AuthenticateMfaHandler interface {
	Handle(AuthenticateMfaParams, interface{}) middleware.Responder
}

AuthenticateMfaHandler interface for that can handle valid authenticate mfa params

type AuthenticateMfaHandlerFunc added in v0.17.52

type AuthenticateMfaHandlerFunc func(AuthenticateMfaParams, interface{}) middleware.Responder

AuthenticateMfaHandlerFunc turns a function with the right signature into a authenticate mfa handler

func (AuthenticateMfaHandlerFunc) Handle added in v0.17.52

func (fn AuthenticateMfaHandlerFunc) Handle(params AuthenticateMfaParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type AuthenticateMfaOK added in v0.17.52

type AuthenticateMfaOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.Empty `json:"body,omitempty"`
}

AuthenticateMfaOK Base empty response

swagger:response authenticateMfaOK

func NewAuthenticateMfaOK added in v0.17.52

func NewAuthenticateMfaOK() *AuthenticateMfaOK

NewAuthenticateMfaOK creates AuthenticateMfaOK with default headers values

func (*AuthenticateMfaOK) SetPayload added in v0.17.52

func (o *AuthenticateMfaOK) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the authenticate mfa o k response

func (*AuthenticateMfaOK) WithPayload added in v0.17.52

func (o *AuthenticateMfaOK) WithPayload(payload *rest_model.Empty) *AuthenticateMfaOK

WithPayload adds the payload to the authenticate mfa o k response

func (*AuthenticateMfaOK) WriteResponse added in v0.17.52

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

WriteResponse to the client

type AuthenticateMfaParams added in v0.17.52

type AuthenticateMfaParams struct {

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

	/*An MFA validation request
	  Required: true
	  In: body
	*/
	MfaAuth *rest_model.MfaCode
}

AuthenticateMfaParams contains all the bound params for the authenticate mfa operation typically these are obtained from a http.Request

swagger:parameters authenticateMfa

func NewAuthenticateMfaParams added in v0.17.52

func NewAuthenticateMfaParams() AuthenticateMfaParams

NewAuthenticateMfaParams creates a new AuthenticateMfaParams object no default values defined in spec.

func (*AuthenticateMfaParams) BindRequest added in v0.17.52

func (o *AuthenticateMfaParams) 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 NewAuthenticateMfaParams() beforehand.

type AuthenticateMfaURL added in v0.17.52

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

AuthenticateMfaURL generates an URL for the authenticate mfa operation

func (*AuthenticateMfaURL) Build added in v0.17.52

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

Build a url path and query string

func (*AuthenticateMfaURL) BuildFull added in v0.17.52

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

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

func (*AuthenticateMfaURL) Must added in v0.17.52

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

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

func (*AuthenticateMfaURL) SetBasePath added in v0.17.52

func (o *AuthenticateMfaURL) 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 (*AuthenticateMfaURL) String added in v0.17.52

func (o *AuthenticateMfaURL) String() string

String returns the string representation of the path with query string

func (*AuthenticateMfaURL) StringFull added in v0.17.52

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

StringFull returns the string representation of a complete url

func (*AuthenticateMfaURL) WithBasePath added in v0.17.52

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

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 AuthenticateMfaUnauthorized added in v0.17.52

type AuthenticateMfaUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.Empty `json:"body,omitempty"`
}

AuthenticateMfaUnauthorized Base empty response

swagger:response authenticateMfaUnauthorized

func NewAuthenticateMfaUnauthorized added in v0.17.52

func NewAuthenticateMfaUnauthorized() *AuthenticateMfaUnauthorized

NewAuthenticateMfaUnauthorized creates AuthenticateMfaUnauthorized with default headers values

func (*AuthenticateMfaUnauthorized) SetPayload added in v0.17.52

func (o *AuthenticateMfaUnauthorized) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the authenticate mfa unauthorized response

func (*AuthenticateMfaUnauthorized) WithPayload added in v0.17.52

WithPayload adds the payload to the authenticate mfa unauthorized response

func (*AuthenticateMfaUnauthorized) WriteResponse added in v0.17.52

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

WriteResponse to the client

type AuthenticateOK

type AuthenticateOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.CurrentAPISessionDetailEnvelope `json:"body,omitempty"`
}

AuthenticateOK The API session associated with the session used to issue the request

swagger:response authenticateOK

func NewAuthenticateOK

func NewAuthenticateOK() *AuthenticateOK

NewAuthenticateOK creates AuthenticateOK with default headers values

func (*AuthenticateOK) SetPayload

SetPayload sets the payload to the authenticate o k response

func (*AuthenticateOK) WithPayload

WithPayload adds the payload to the authenticate o k response

func (*AuthenticateOK) WriteResponse

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

WriteResponse to the client

type AuthenticateParams

type AuthenticateParams struct {

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

	/*
	  In: body
	*/
	Auth *rest_model.Authenticate
	/*
	  Required: true
	  In: query
	*/
	Method string
}

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

swagger:parameters authenticate

func NewAuthenticateParams

func NewAuthenticateParams() AuthenticateParams

NewAuthenticateParams creates a new AuthenticateParams object no default values defined in spec.

func (*AuthenticateParams) BindRequest

func (o *AuthenticateParams) 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 NewAuthenticateParams() beforehand.

type AuthenticateURL

type AuthenticateURL struct {
	Method string
	// contains filtered or unexported fields
}

AuthenticateURL generates an URL for the authenticate operation

func (*AuthenticateURL) Build

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

Build a url path and query string

func (*AuthenticateURL) BuildFull

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

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

func (*AuthenticateURL) Must

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

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

func (*AuthenticateURL) SetBasePath

func (o *AuthenticateURL) 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 (*AuthenticateURL) String

func (o *AuthenticateURL) String() string

String returns the string representation of the path with query string

func (*AuthenticateURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AuthenticateURL) WithBasePath

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

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

Jump to

Keyboard shortcuts

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