current_identity

package
v0.21.63 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CreateMfaRecoveryCodesNotFoundCode int = 404

CreateMfaRecoveryCodesNotFoundCode is the HTTP code returned for type CreateMfaRecoveryCodesNotFound

View Source
const CreateMfaRecoveryCodesOKCode int = 200

CreateMfaRecoveryCodesOKCode is the HTTP code returned for type CreateMfaRecoveryCodesOK

View Source
const CreateMfaRecoveryCodesUnauthorizedCode int = 401

CreateMfaRecoveryCodesUnauthorizedCode is the HTTP code returned for type CreateMfaRecoveryCodesUnauthorized

View Source
const DeleteMfaNotFoundCode int = 404

DeleteMfaNotFoundCode is the HTTP code returned for type DeleteMfaNotFound

View Source
const DeleteMfaOKCode int = 200

DeleteMfaOKCode is the HTTP code returned for type DeleteMfaOK

View Source
const DeleteMfaUnauthorizedCode int = 401

DeleteMfaUnauthorizedCode is the HTTP code returned for type DeleteMfaUnauthorized

View Source
const DetailMfaNotFoundCode int = 404

DetailMfaNotFoundCode is the HTTP code returned for type DetailMfaNotFound

View Source
const DetailMfaOKCode int = 200

DetailMfaOKCode is the HTTP code returned for type DetailMfaOK

View Source
const DetailMfaQrCodeNotFoundCode int = 404

DetailMfaQrCodeNotFoundCode is the HTTP code returned for type DetailMfaQrCodeNotFound

View Source
const DetailMfaQrCodeOKCode int = 200

DetailMfaQrCodeOKCode is the HTTP code returned for type DetailMfaQrCodeOK

View Source
const DetailMfaRecoveryCodesNotFoundCode int = 404

DetailMfaRecoveryCodesNotFoundCode is the HTTP code returned for type DetailMfaRecoveryCodesNotFound

View Source
const DetailMfaRecoveryCodesOKCode int = 200

DetailMfaRecoveryCodesOKCode is the HTTP code returned for type DetailMfaRecoveryCodesOK

View Source
const DetailMfaRecoveryCodesUnauthorizedCode int = 401

DetailMfaRecoveryCodesUnauthorizedCode is the HTTP code returned for type DetailMfaRecoveryCodesUnauthorized

View Source
const DetailMfaUnauthorizedCode int = 401

DetailMfaUnauthorizedCode is the HTTP code returned for type DetailMfaUnauthorized

View Source
const EnrollMfaConflictCode int = 409

EnrollMfaConflictCode is the HTTP code returned for type EnrollMfaConflict

View Source
const EnrollMfaCreatedCode int = 201

EnrollMfaCreatedCode is the HTTP code returned for type EnrollMfaCreated

View Source
const EnrollMfaUnauthorizedCode int = 401

EnrollMfaUnauthorizedCode is the HTTP code returned for type EnrollMfaUnauthorized

View Source
const GetCurrentIdentityOKCode int = 200

GetCurrentIdentityOKCode is the HTTP code returned for type GetCurrentIdentityOK

View Source
const GetCurrentIdentityUnauthorizedCode int = 401

GetCurrentIdentityUnauthorizedCode is the HTTP code returned for type GetCurrentIdentityUnauthorized

View Source
const VerifyMfaNotFoundCode int = 404

VerifyMfaNotFoundCode is the HTTP code returned for type VerifyMfaNotFound

View Source
const VerifyMfaOKCode int = 200

VerifyMfaOKCode is the HTTP code returned for type VerifyMfaOK

View Source
const VerifyMfaUnauthorizedCode int = 401

VerifyMfaUnauthorizedCode is the HTTP code returned for type VerifyMfaUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateMfaRecoveryCodes

type CreateMfaRecoveryCodes struct {
	Context *middleware.Context
	Handler CreateMfaRecoveryCodesHandler
}
CreateMfaRecoveryCodes swagger:route POST /current-identity/mfa/recovery-codes Current Identity MFA createMfaRecoveryCodes

For a completed MFA enrollment regenerate the recovery codes

Allows regeneration of recovery codes of an MFA enrollment. Requires a current valid time based one time password to interact with. Available after a completed MFA enrollment. This replaces all existing recovery codes.

func NewCreateMfaRecoveryCodes

func NewCreateMfaRecoveryCodes(ctx *middleware.Context, handler CreateMfaRecoveryCodesHandler) *CreateMfaRecoveryCodes

NewCreateMfaRecoveryCodes creates a new http.Handler for the create mfa recovery codes operation

func (*CreateMfaRecoveryCodes) ServeHTTP

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

type CreateMfaRecoveryCodesHandler

type CreateMfaRecoveryCodesHandler interface {
	Handle(CreateMfaRecoveryCodesParams, interface{}) middleware.Responder
}

CreateMfaRecoveryCodesHandler interface for that can handle valid create mfa recovery codes params

type CreateMfaRecoveryCodesHandlerFunc

type CreateMfaRecoveryCodesHandlerFunc func(CreateMfaRecoveryCodesParams, interface{}) middleware.Responder

CreateMfaRecoveryCodesHandlerFunc turns a function with the right signature into a create mfa recovery codes handler

func (CreateMfaRecoveryCodesHandlerFunc) Handle

Handle executing the request and returning a response

type CreateMfaRecoveryCodesNotFound

type CreateMfaRecoveryCodesNotFound struct {

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

CreateMfaRecoveryCodesNotFound The requested resource does not exist

swagger:response createMfaRecoveryCodesNotFound

func NewCreateMfaRecoveryCodesNotFound

func NewCreateMfaRecoveryCodesNotFound() *CreateMfaRecoveryCodesNotFound

NewCreateMfaRecoveryCodesNotFound creates CreateMfaRecoveryCodesNotFound with default headers values

func (*CreateMfaRecoveryCodesNotFound) SetPayload

SetPayload sets the payload to the create mfa recovery codes not found response

func (*CreateMfaRecoveryCodesNotFound) WithPayload

WithPayload adds the payload to the create mfa recovery codes not found response

func (*CreateMfaRecoveryCodesNotFound) WriteResponse

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

WriteResponse to the client

type CreateMfaRecoveryCodesOK

type CreateMfaRecoveryCodesOK struct {

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

CreateMfaRecoveryCodesOK The recovery codes of an MFA enrollment

swagger:response createMfaRecoveryCodesOK

func NewCreateMfaRecoveryCodesOK

func NewCreateMfaRecoveryCodesOK() *CreateMfaRecoveryCodesOK

NewCreateMfaRecoveryCodesOK creates CreateMfaRecoveryCodesOK with default headers values

func (*CreateMfaRecoveryCodesOK) SetPayload

SetPayload sets the payload to the create mfa recovery codes o k response

func (*CreateMfaRecoveryCodesOK) WithPayload

WithPayload adds the payload to the create mfa recovery codes o k response

func (*CreateMfaRecoveryCodesOK) WriteResponse

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

WriteResponse to the client

type CreateMfaRecoveryCodesParams

type CreateMfaRecoveryCodesParams struct {

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

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

CreateMfaRecoveryCodesParams contains all the bound params for the create mfa recovery codes operation typically these are obtained from a http.Request

swagger:parameters createMfaRecoveryCodes

func NewCreateMfaRecoveryCodesParams

func NewCreateMfaRecoveryCodesParams() CreateMfaRecoveryCodesParams

NewCreateMfaRecoveryCodesParams creates a new CreateMfaRecoveryCodesParams object

There are no default values defined in the spec.

func (*CreateMfaRecoveryCodesParams) BindRequest

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 NewCreateMfaRecoveryCodesParams() beforehand.

type CreateMfaRecoveryCodesURL

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

CreateMfaRecoveryCodesURL generates an URL for the create mfa recovery codes operation

func (*CreateMfaRecoveryCodesURL) Build

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

Build a url path and query string

func (*CreateMfaRecoveryCodesURL) BuildFull

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

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

func (*CreateMfaRecoveryCodesURL) Must

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

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

func (*CreateMfaRecoveryCodesURL) SetBasePath

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

func (o *CreateMfaRecoveryCodesURL) String() string

String returns the string representation of the path with query string

func (*CreateMfaRecoveryCodesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateMfaRecoveryCodesURL) WithBasePath

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 CreateMfaRecoveryCodesUnauthorized

type CreateMfaRecoveryCodesUnauthorized struct {

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

CreateMfaRecoveryCodesUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response createMfaRecoveryCodesUnauthorized

func NewCreateMfaRecoveryCodesUnauthorized

func NewCreateMfaRecoveryCodesUnauthorized() *CreateMfaRecoveryCodesUnauthorized

NewCreateMfaRecoveryCodesUnauthorized creates CreateMfaRecoveryCodesUnauthorized with default headers values

func (*CreateMfaRecoveryCodesUnauthorized) SetPayload

SetPayload sets the payload to the create mfa recovery codes unauthorized response

func (*CreateMfaRecoveryCodesUnauthorized) WithPayload

WithPayload adds the payload to the create mfa recovery codes unauthorized response

func (*CreateMfaRecoveryCodesUnauthorized) WriteResponse

WriteResponse to the client

type DeleteMfa

type DeleteMfa struct {
	Context *middleware.Context
	Handler DeleteMfaHandler
}
DeleteMfa swagger:route DELETE /current-identity/mfa Current Identity MFA deleteMfa

Disable MFA for the current identity

Disable MFA for the current identity. Requires a current valid time based one time password if MFA enrollment has been completed. If not, code should be an empty string. If one time passwords are not available and admin account can be used to remove MFA from the identity via `DELETE /identities/<id>/mfa`.

func NewDeleteMfa

func NewDeleteMfa(ctx *middleware.Context, handler DeleteMfaHandler) *DeleteMfa

NewDeleteMfa creates a new http.Handler for the delete mfa operation

func (*DeleteMfa) ServeHTTP

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

type DeleteMfaHandler

type DeleteMfaHandler interface {
	Handle(DeleteMfaParams, interface{}) middleware.Responder
}

DeleteMfaHandler interface for that can handle valid delete mfa params

type DeleteMfaHandlerFunc

type DeleteMfaHandlerFunc func(DeleteMfaParams, interface{}) middleware.Responder

DeleteMfaHandlerFunc turns a function with the right signature into a delete mfa handler

func (DeleteMfaHandlerFunc) Handle

func (fn DeleteMfaHandlerFunc) Handle(params DeleteMfaParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteMfaNotFound

type DeleteMfaNotFound struct {

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

DeleteMfaNotFound The requested resource does not exist

swagger:response deleteMfaNotFound

func NewDeleteMfaNotFound

func NewDeleteMfaNotFound() *DeleteMfaNotFound

NewDeleteMfaNotFound creates DeleteMfaNotFound with default headers values

func (*DeleteMfaNotFound) SetPayload

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

SetPayload sets the payload to the delete mfa not found response

func (*DeleteMfaNotFound) WithPayload

WithPayload adds the payload to the delete mfa not found response

func (*DeleteMfaNotFound) WriteResponse

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

WriteResponse to the client

type DeleteMfaOK

type DeleteMfaOK struct {

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

DeleteMfaOK Base empty response

swagger:response deleteMfaOK

func NewDeleteMfaOK

func NewDeleteMfaOK() *DeleteMfaOK

NewDeleteMfaOK creates DeleteMfaOK with default headers values

func (*DeleteMfaOK) SetPayload

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

SetPayload sets the payload to the delete mfa o k response

func (*DeleteMfaOK) WithPayload

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

WithPayload adds the payload to the delete mfa o k response

func (*DeleteMfaOK) WriteResponse

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

WriteResponse to the client

type DeleteMfaParams

type DeleteMfaParams struct {

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

	/*
	  In: header
	*/
	MfaValidationCode *string
	/*An MFA validation request
	  In: body
	*/
	MfaValidation *rest_model.MfaCode
}

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

swagger:parameters deleteMfa

func NewDeleteMfaParams

func NewDeleteMfaParams() DeleteMfaParams

NewDeleteMfaParams creates a new DeleteMfaParams object

There are no default values defined in the spec.

func (*DeleteMfaParams) BindRequest

func (o *DeleteMfaParams) 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 NewDeleteMfaParams() beforehand.

type DeleteMfaURL

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

DeleteMfaURL generates an URL for the delete mfa operation

func (*DeleteMfaURL) Build

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

Build a url path and query string

func (*DeleteMfaURL) BuildFull

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

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

func (*DeleteMfaURL) Must

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

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

func (*DeleteMfaURL) SetBasePath

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

func (o *DeleteMfaURL) String() string

String returns the string representation of the path with query string

func (*DeleteMfaURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteMfaURL) WithBasePath

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

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 DeleteMfaUnauthorized

type DeleteMfaUnauthorized struct {

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

DeleteMfaUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response deleteMfaUnauthorized

func NewDeleteMfaUnauthorized

func NewDeleteMfaUnauthorized() *DeleteMfaUnauthorized

NewDeleteMfaUnauthorized creates DeleteMfaUnauthorized with default headers values

func (*DeleteMfaUnauthorized) SetPayload

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

SetPayload sets the payload to the delete mfa unauthorized response

func (*DeleteMfaUnauthorized) WithPayload

WithPayload adds the payload to the delete mfa unauthorized response

func (*DeleteMfaUnauthorized) WriteResponse

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

WriteResponse to the client

type DetailMfa

type DetailMfa struct {
	Context *middleware.Context
	Handler DetailMfaHandler
}
DetailMfa swagger:route GET /current-identity/mfa Current Identity MFA detailMfa

Returns the current status of MFA enrollment

Returns details about the current MFA enrollment. If enrollment has not been completed it will return the current MFA configuration details necessary to complete a `POST /current-identity/mfa/verify`.

func NewDetailMfa

func NewDetailMfa(ctx *middleware.Context, handler DetailMfaHandler) *DetailMfa

NewDetailMfa creates a new http.Handler for the detail mfa operation

func (*DetailMfa) ServeHTTP

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

type DetailMfaHandler

type DetailMfaHandler interface {
	Handle(DetailMfaParams, interface{}) middleware.Responder
}

DetailMfaHandler interface for that can handle valid detail mfa params

type DetailMfaHandlerFunc

type DetailMfaHandlerFunc func(DetailMfaParams, interface{}) middleware.Responder

DetailMfaHandlerFunc turns a function with the right signature into a detail mfa handler

func (DetailMfaHandlerFunc) Handle

func (fn DetailMfaHandlerFunc) Handle(params DetailMfaParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DetailMfaNotFound

type DetailMfaNotFound struct {

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

DetailMfaNotFound The requested resource does not exist

swagger:response detailMfaNotFound

func NewDetailMfaNotFound

func NewDetailMfaNotFound() *DetailMfaNotFound

NewDetailMfaNotFound creates DetailMfaNotFound with default headers values

func (*DetailMfaNotFound) SetPayload

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

SetPayload sets the payload to the detail mfa not found response

func (*DetailMfaNotFound) WithPayload

WithPayload adds the payload to the detail mfa not found response

func (*DetailMfaNotFound) WriteResponse

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

WriteResponse to the client

type DetailMfaOK

type DetailMfaOK struct {

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

DetailMfaOK The details of an MFA enrollment

swagger:response detailMfaOK

func NewDetailMfaOK

func NewDetailMfaOK() *DetailMfaOK

NewDetailMfaOK creates DetailMfaOK with default headers values

func (*DetailMfaOK) SetPayload

func (o *DetailMfaOK) SetPayload(payload *rest_model.DetailMfaEnvelope)

SetPayload sets the payload to the detail mfa o k response

func (*DetailMfaOK) WithPayload

func (o *DetailMfaOK) WithPayload(payload *rest_model.DetailMfaEnvelope) *DetailMfaOK

WithPayload adds the payload to the detail mfa o k response

func (*DetailMfaOK) WriteResponse

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

WriteResponse to the client

type DetailMfaParams

type DetailMfaParams struct {

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

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

swagger:parameters detailMfa

func NewDetailMfaParams

func NewDetailMfaParams() DetailMfaParams

NewDetailMfaParams creates a new DetailMfaParams object

There are no default values defined in the spec.

func (*DetailMfaParams) BindRequest

func (o *DetailMfaParams) 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 NewDetailMfaParams() beforehand.

type DetailMfaQrCode

type DetailMfaQrCode struct {
	Context *middleware.Context
	Handler DetailMfaQrCodeHandler
}
DetailMfaQrCode swagger:route GET /current-identity/mfa/qr-code Current Identity MFA detailMfaQrCode

Show a QR code for unverified MFA enrollments

Shows an QR code image for unverified MFA enrollments. 404s if the MFA enrollment has been completed or not started.

func NewDetailMfaQrCode

func NewDetailMfaQrCode(ctx *middleware.Context, handler DetailMfaQrCodeHandler) *DetailMfaQrCode

NewDetailMfaQrCode creates a new http.Handler for the detail mfa qr code operation

func (*DetailMfaQrCode) ServeHTTP

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

type DetailMfaQrCodeHandler

type DetailMfaQrCodeHandler interface {
	Handle(DetailMfaQrCodeParams, interface{}) middleware.Responder
}

DetailMfaQrCodeHandler interface for that can handle valid detail mfa qr code params

type DetailMfaQrCodeHandlerFunc

type DetailMfaQrCodeHandlerFunc func(DetailMfaQrCodeParams, interface{}) middleware.Responder

DetailMfaQrCodeHandlerFunc turns a function with the right signature into a detail mfa qr code handler

func (DetailMfaQrCodeHandlerFunc) Handle

func (fn DetailMfaQrCodeHandlerFunc) Handle(params DetailMfaQrCodeParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DetailMfaQrCodeNotFound

type DetailMfaQrCodeNotFound struct {
}

DetailMfaQrCodeNotFound No MFA enrollment or MFA enrollment is completed

swagger:response detailMfaQrCodeNotFound

func NewDetailMfaQrCodeNotFound

func NewDetailMfaQrCodeNotFound() *DetailMfaQrCodeNotFound

NewDetailMfaQrCodeNotFound creates DetailMfaQrCodeNotFound with default headers values

func (*DetailMfaQrCodeNotFound) WriteResponse

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

WriteResponse to the client

type DetailMfaQrCodeOK

type DetailMfaQrCodeOK struct {
}

DetailMfaQrCodeOK OK

swagger:response detailMfaQrCodeOK

func NewDetailMfaQrCodeOK

func NewDetailMfaQrCodeOK() *DetailMfaQrCodeOK

NewDetailMfaQrCodeOK creates DetailMfaQrCodeOK with default headers values

func (*DetailMfaQrCodeOK) WriteResponse

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

WriteResponse to the client

type DetailMfaQrCodeParams

type DetailMfaQrCodeParams struct {

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

DetailMfaQrCodeParams contains all the bound params for the detail mfa qr code operation typically these are obtained from a http.Request

swagger:parameters detailMfaQrCode

func NewDetailMfaQrCodeParams

func NewDetailMfaQrCodeParams() DetailMfaQrCodeParams

NewDetailMfaQrCodeParams creates a new DetailMfaQrCodeParams object

There are no default values defined in the spec.

func (*DetailMfaQrCodeParams) BindRequest

func (o *DetailMfaQrCodeParams) 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 NewDetailMfaQrCodeParams() beforehand.

type DetailMfaQrCodeURL

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

DetailMfaQrCodeURL generates an URL for the detail mfa qr code operation

func (*DetailMfaQrCodeURL) Build

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

Build a url path and query string

func (*DetailMfaQrCodeURL) BuildFull

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

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

func (*DetailMfaQrCodeURL) Must

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

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

func (*DetailMfaQrCodeURL) SetBasePath

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

func (o *DetailMfaQrCodeURL) String() string

String returns the string representation of the path with query string

func (*DetailMfaQrCodeURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DetailMfaQrCodeURL) WithBasePath

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

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 DetailMfaRecoveryCodes

type DetailMfaRecoveryCodes struct {
	Context *middleware.Context
	Handler DetailMfaRecoveryCodesHandler
}
DetailMfaRecoveryCodes swagger:route GET /current-identity/mfa/recovery-codes Current Identity MFA detailMfaRecoveryCodes

For a completed MFA enrollment view the current recovery codes

Allows the viewing of recovery codes of an MFA enrollment. Requires a current valid time based one time password to interact with. Available after a completed MFA enrollment.

func NewDetailMfaRecoveryCodes

func NewDetailMfaRecoveryCodes(ctx *middleware.Context, handler DetailMfaRecoveryCodesHandler) *DetailMfaRecoveryCodes

NewDetailMfaRecoveryCodes creates a new http.Handler for the detail mfa recovery codes operation

func (*DetailMfaRecoveryCodes) ServeHTTP

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

type DetailMfaRecoveryCodesHandler

type DetailMfaRecoveryCodesHandler interface {
	Handle(DetailMfaRecoveryCodesParams, interface{}) middleware.Responder
}

DetailMfaRecoveryCodesHandler interface for that can handle valid detail mfa recovery codes params

type DetailMfaRecoveryCodesHandlerFunc

type DetailMfaRecoveryCodesHandlerFunc func(DetailMfaRecoveryCodesParams, interface{}) middleware.Responder

DetailMfaRecoveryCodesHandlerFunc turns a function with the right signature into a detail mfa recovery codes handler

func (DetailMfaRecoveryCodesHandlerFunc) Handle

Handle executing the request and returning a response

type DetailMfaRecoveryCodesNotFound

type DetailMfaRecoveryCodesNotFound struct {

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

DetailMfaRecoveryCodesNotFound The requested resource does not exist

swagger:response detailMfaRecoveryCodesNotFound

func NewDetailMfaRecoveryCodesNotFound

func NewDetailMfaRecoveryCodesNotFound() *DetailMfaRecoveryCodesNotFound

NewDetailMfaRecoveryCodesNotFound creates DetailMfaRecoveryCodesNotFound with default headers values

func (*DetailMfaRecoveryCodesNotFound) SetPayload

SetPayload sets the payload to the detail mfa recovery codes not found response

func (*DetailMfaRecoveryCodesNotFound) WithPayload

WithPayload adds the payload to the detail mfa recovery codes not found response

func (*DetailMfaRecoveryCodesNotFound) WriteResponse

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

WriteResponse to the client

type DetailMfaRecoveryCodesOK

type DetailMfaRecoveryCodesOK struct {

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

DetailMfaRecoveryCodesOK Base empty response

swagger:response detailMfaRecoveryCodesOK

func NewDetailMfaRecoveryCodesOK

func NewDetailMfaRecoveryCodesOK() *DetailMfaRecoveryCodesOK

NewDetailMfaRecoveryCodesOK creates DetailMfaRecoveryCodesOK with default headers values

func (*DetailMfaRecoveryCodesOK) SetPayload

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

SetPayload sets the payload to the detail mfa recovery codes o k response

func (*DetailMfaRecoveryCodesOK) WithPayload

WithPayload adds the payload to the detail mfa recovery codes o k response

func (*DetailMfaRecoveryCodesOK) WriteResponse

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

WriteResponse to the client

type DetailMfaRecoveryCodesParams

type DetailMfaRecoveryCodesParams struct {

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

	/*
	  In: header
	*/
	MfaValidationCode *string
	/*An MFA validation request
	  In: body
	*/
	MfaValidation *rest_model.MfaCode
}

DetailMfaRecoveryCodesParams contains all the bound params for the detail mfa recovery codes operation typically these are obtained from a http.Request

swagger:parameters detailMfaRecoveryCodes

func NewDetailMfaRecoveryCodesParams

func NewDetailMfaRecoveryCodesParams() DetailMfaRecoveryCodesParams

NewDetailMfaRecoveryCodesParams creates a new DetailMfaRecoveryCodesParams object

There are no default values defined in the spec.

func (*DetailMfaRecoveryCodesParams) BindRequest

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 NewDetailMfaRecoveryCodesParams() beforehand.

type DetailMfaRecoveryCodesURL

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

DetailMfaRecoveryCodesURL generates an URL for the detail mfa recovery codes operation

func (*DetailMfaRecoveryCodesURL) Build

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

Build a url path and query string

func (*DetailMfaRecoveryCodesURL) BuildFull

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

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

func (*DetailMfaRecoveryCodesURL) Must

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

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

func (*DetailMfaRecoveryCodesURL) SetBasePath

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

func (o *DetailMfaRecoveryCodesURL) String() string

String returns the string representation of the path with query string

func (*DetailMfaRecoveryCodesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DetailMfaRecoveryCodesURL) WithBasePath

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 DetailMfaRecoveryCodesUnauthorized

type DetailMfaRecoveryCodesUnauthorized struct {

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

DetailMfaRecoveryCodesUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response detailMfaRecoveryCodesUnauthorized

func NewDetailMfaRecoveryCodesUnauthorized

func NewDetailMfaRecoveryCodesUnauthorized() *DetailMfaRecoveryCodesUnauthorized

NewDetailMfaRecoveryCodesUnauthorized creates DetailMfaRecoveryCodesUnauthorized with default headers values

func (*DetailMfaRecoveryCodesUnauthorized) SetPayload

SetPayload sets the payload to the detail mfa recovery codes unauthorized response

func (*DetailMfaRecoveryCodesUnauthorized) WithPayload

WithPayload adds the payload to the detail mfa recovery codes unauthorized response

func (*DetailMfaRecoveryCodesUnauthorized) WriteResponse

WriteResponse to the client

type DetailMfaURL

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

DetailMfaURL generates an URL for the detail mfa operation

func (*DetailMfaURL) Build

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

Build a url path and query string

func (*DetailMfaURL) BuildFull

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

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

func (*DetailMfaURL) Must

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

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

func (*DetailMfaURL) SetBasePath

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

func (o *DetailMfaURL) String() string

String returns the string representation of the path with query string

func (*DetailMfaURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DetailMfaURL) WithBasePath

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

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 DetailMfaUnauthorized

type DetailMfaUnauthorized struct {

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

DetailMfaUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response detailMfaUnauthorized

func NewDetailMfaUnauthorized

func NewDetailMfaUnauthorized() *DetailMfaUnauthorized

NewDetailMfaUnauthorized creates DetailMfaUnauthorized with default headers values

func (*DetailMfaUnauthorized) SetPayload

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

SetPayload sets the payload to the detail mfa unauthorized response

func (*DetailMfaUnauthorized) WithPayload

WithPayload adds the payload to the detail mfa unauthorized response

func (*DetailMfaUnauthorized) WriteResponse

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

WriteResponse to the client

type EnrollMfa

type EnrollMfa struct {
	Context *middleware.Context
	Handler EnrollMfaHandler
}
EnrollMfa swagger:route POST /current-identity/mfa Current Identity MFA enrollMfa

Initiate MFA enrollment

Allows authenticator based MFA enrollment. If enrollment has already been completed, it must be disabled before attempting to re-enroll. Subsequent enrollment request is completed via `POST /current-identity/mfa/verify`

func NewEnrollMfa

func NewEnrollMfa(ctx *middleware.Context, handler EnrollMfaHandler) *EnrollMfa

NewEnrollMfa creates a new http.Handler for the enroll mfa operation

func (*EnrollMfa) ServeHTTP

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

type EnrollMfaConflict

type EnrollMfaConflict struct {

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

EnrollMfaConflict The identity is already enrolled in MFA

swagger:response enrollMfaConflict

func NewEnrollMfaConflict

func NewEnrollMfaConflict() *EnrollMfaConflict

NewEnrollMfaConflict creates EnrollMfaConflict with default headers values

func (*EnrollMfaConflict) SetPayload

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

SetPayload sets the payload to the enroll mfa conflict response

func (*EnrollMfaConflict) WithPayload

WithPayload adds the payload to the enroll mfa conflict response

func (*EnrollMfaConflict) WriteResponse

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

WriteResponse to the client

type EnrollMfaCreated

type EnrollMfaCreated struct {

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

EnrollMfaCreated The create request was successful and the resource has been added at the following location

swagger:response enrollMfaCreated

func NewEnrollMfaCreated

func NewEnrollMfaCreated() *EnrollMfaCreated

NewEnrollMfaCreated creates EnrollMfaCreated with default headers values

func (*EnrollMfaCreated) SetPayload

func (o *EnrollMfaCreated) SetPayload(payload *rest_model.CreateEnvelope)

SetPayload sets the payload to the enroll mfa created response

func (*EnrollMfaCreated) WithPayload

func (o *EnrollMfaCreated) WithPayload(payload *rest_model.CreateEnvelope) *EnrollMfaCreated

WithPayload adds the payload to the enroll mfa created response

func (*EnrollMfaCreated) WriteResponse

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

WriteResponse to the client

type EnrollMfaHandler

type EnrollMfaHandler interface {
	Handle(EnrollMfaParams, interface{}) middleware.Responder
}

EnrollMfaHandler interface for that can handle valid enroll mfa params

type EnrollMfaHandlerFunc

type EnrollMfaHandlerFunc func(EnrollMfaParams, interface{}) middleware.Responder

EnrollMfaHandlerFunc turns a function with the right signature into a enroll mfa handler

func (EnrollMfaHandlerFunc) Handle

func (fn EnrollMfaHandlerFunc) Handle(params EnrollMfaParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type EnrollMfaParams

type EnrollMfaParams struct {

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

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

swagger:parameters enrollMfa

func NewEnrollMfaParams

func NewEnrollMfaParams() EnrollMfaParams

NewEnrollMfaParams creates a new EnrollMfaParams object

There are no default values defined in the spec.

func (*EnrollMfaParams) BindRequest

func (o *EnrollMfaParams) 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 NewEnrollMfaParams() beforehand.

type EnrollMfaURL

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

EnrollMfaURL generates an URL for the enroll mfa operation

func (*EnrollMfaURL) Build

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

Build a url path and query string

func (*EnrollMfaURL) BuildFull

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

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

func (*EnrollMfaURL) Must

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

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

func (*EnrollMfaURL) SetBasePath

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

func (o *EnrollMfaURL) String() string

String returns the string representation of the path with query string

func (*EnrollMfaURL) StringFull

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

StringFull returns the string representation of a complete url

func (*EnrollMfaURL) WithBasePath

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

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 EnrollMfaUnauthorized

type EnrollMfaUnauthorized struct {

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

EnrollMfaUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response enrollMfaUnauthorized

func NewEnrollMfaUnauthorized

func NewEnrollMfaUnauthorized() *EnrollMfaUnauthorized

NewEnrollMfaUnauthorized creates EnrollMfaUnauthorized with default headers values

func (*EnrollMfaUnauthorized) SetPayload

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

SetPayload sets the payload to the enroll mfa unauthorized response

func (*EnrollMfaUnauthorized) WithPayload

WithPayload adds the payload to the enroll mfa unauthorized response

func (*EnrollMfaUnauthorized) WriteResponse

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

WriteResponse to the client

type GetCurrentIdentity

type GetCurrentIdentity struct {
	Context *middleware.Context
	Handler GetCurrentIdentityHandler
}
GetCurrentIdentity swagger:route GET /current-identity Current Identity getCurrentIdentity

Return the current identity

Returns the identity associated with the API sessions used to issue the current request

func NewGetCurrentIdentity

func NewGetCurrentIdentity(ctx *middleware.Context, handler GetCurrentIdentityHandler) *GetCurrentIdentity

NewGetCurrentIdentity creates a new http.Handler for the get current identity operation

func (*GetCurrentIdentity) ServeHTTP

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

type GetCurrentIdentityHandler

type GetCurrentIdentityHandler interface {
	Handle(GetCurrentIdentityParams, interface{}) middleware.Responder
}

GetCurrentIdentityHandler interface for that can handle valid get current identity params

type GetCurrentIdentityHandlerFunc

type GetCurrentIdentityHandlerFunc func(GetCurrentIdentityParams, interface{}) middleware.Responder

GetCurrentIdentityHandlerFunc turns a function with the right signature into a get current identity handler

func (GetCurrentIdentityHandlerFunc) Handle

func (fn GetCurrentIdentityHandlerFunc) Handle(params GetCurrentIdentityParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetCurrentIdentityOK

type GetCurrentIdentityOK struct {

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

GetCurrentIdentityOK The identity associated with the API Session used to issue the request

swagger:response getCurrentIdentityOK

func NewGetCurrentIdentityOK

func NewGetCurrentIdentityOK() *GetCurrentIdentityOK

NewGetCurrentIdentityOK creates GetCurrentIdentityOK with default headers values

func (*GetCurrentIdentityOK) SetPayload

SetPayload sets the payload to the get current identity o k response

func (*GetCurrentIdentityOK) WithPayload

WithPayload adds the payload to the get current identity o k response

func (*GetCurrentIdentityOK) WriteResponse

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

WriteResponse to the client

type GetCurrentIdentityParams

type GetCurrentIdentityParams struct {

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

GetCurrentIdentityParams contains all the bound params for the get current identity operation typically these are obtained from a http.Request

swagger:parameters getCurrentIdentity

func NewGetCurrentIdentityParams

func NewGetCurrentIdentityParams() GetCurrentIdentityParams

NewGetCurrentIdentityParams creates a new GetCurrentIdentityParams object

There are no default values defined in the spec.

func (*GetCurrentIdentityParams) BindRequest

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 NewGetCurrentIdentityParams() beforehand.

type GetCurrentIdentityURL

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

GetCurrentIdentityURL generates an URL for the get current identity operation

func (*GetCurrentIdentityURL) Build

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

Build a url path and query string

func (*GetCurrentIdentityURL) BuildFull

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

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

func (*GetCurrentIdentityURL) Must

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

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

func (*GetCurrentIdentityURL) SetBasePath

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

func (o *GetCurrentIdentityURL) String() string

String returns the string representation of the path with query string

func (*GetCurrentIdentityURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetCurrentIdentityURL) WithBasePath

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

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 GetCurrentIdentityUnauthorized

type GetCurrentIdentityUnauthorized struct {

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

GetCurrentIdentityUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response getCurrentIdentityUnauthorized

func NewGetCurrentIdentityUnauthorized

func NewGetCurrentIdentityUnauthorized() *GetCurrentIdentityUnauthorized

NewGetCurrentIdentityUnauthorized creates GetCurrentIdentityUnauthorized with default headers values

func (*GetCurrentIdentityUnauthorized) SetPayload

SetPayload sets the payload to the get current identity unauthorized response

func (*GetCurrentIdentityUnauthorized) WithPayload

WithPayload adds the payload to the get current identity unauthorized response

func (*GetCurrentIdentityUnauthorized) WriteResponse

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

WriteResponse to the client

type VerifyMfa

type VerifyMfa struct {
	Context *middleware.Context
	Handler VerifyMfaHandler
}
VerifyMfa swagger:route POST /current-identity/mfa/verify Current Identity MFA verifyMfa

Complete MFA enrollment by verifying a time based one time token

Completes MFA enrollment by accepting a time based one time password as verification. Called after MFA enrollment has been initiated via `POST /current-identity/mfa`.

func NewVerifyMfa

func NewVerifyMfa(ctx *middleware.Context, handler VerifyMfaHandler) *VerifyMfa

NewVerifyMfa creates a new http.Handler for the verify mfa operation

func (*VerifyMfa) ServeHTTP

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

type VerifyMfaHandler

type VerifyMfaHandler interface {
	Handle(VerifyMfaParams, interface{}) middleware.Responder
}

VerifyMfaHandler interface for that can handle valid verify mfa params

type VerifyMfaHandlerFunc

type VerifyMfaHandlerFunc func(VerifyMfaParams, interface{}) middleware.Responder

VerifyMfaHandlerFunc turns a function with the right signature into a verify mfa handler

func (VerifyMfaHandlerFunc) Handle

func (fn VerifyMfaHandlerFunc) Handle(params VerifyMfaParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type VerifyMfaNotFound

type VerifyMfaNotFound struct {

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

VerifyMfaNotFound The requested resource does not exist

swagger:response verifyMfaNotFound

func NewVerifyMfaNotFound

func NewVerifyMfaNotFound() *VerifyMfaNotFound

NewVerifyMfaNotFound creates VerifyMfaNotFound with default headers values

func (*VerifyMfaNotFound) SetPayload

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

SetPayload sets the payload to the verify mfa not found response

func (*VerifyMfaNotFound) WithPayload

WithPayload adds the payload to the verify mfa not found response

func (*VerifyMfaNotFound) WriteResponse

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

WriteResponse to the client

type VerifyMfaOK

type VerifyMfaOK struct {

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

VerifyMfaOK Base empty response

swagger:response verifyMfaOK

func NewVerifyMfaOK

func NewVerifyMfaOK() *VerifyMfaOK

NewVerifyMfaOK creates VerifyMfaOK with default headers values

func (*VerifyMfaOK) SetPayload

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

SetPayload sets the payload to the verify mfa o k response

func (*VerifyMfaOK) WithPayload

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

WithPayload adds the payload to the verify mfa o k response

func (*VerifyMfaOK) WriteResponse

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

WriteResponse to the client

type VerifyMfaParams

type VerifyMfaParams struct {

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

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

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

swagger:parameters verifyMfa

func NewVerifyMfaParams

func NewVerifyMfaParams() VerifyMfaParams

NewVerifyMfaParams creates a new VerifyMfaParams object

There are no default values defined in the spec.

func (*VerifyMfaParams) BindRequest

func (o *VerifyMfaParams) 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 NewVerifyMfaParams() beforehand.

type VerifyMfaURL

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

VerifyMfaURL generates an URL for the verify mfa operation

func (*VerifyMfaURL) Build

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

Build a url path and query string

func (*VerifyMfaURL) BuildFull

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

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

func (*VerifyMfaURL) Must

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

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

func (*VerifyMfaURL) SetBasePath

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

func (o *VerifyMfaURL) String() string

String returns the string representation of the path with query string

func (*VerifyMfaURL) StringFull

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

StringFull returns the string representation of a complete url

func (*VerifyMfaURL) WithBasePath

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

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 VerifyMfaUnauthorized

type VerifyMfaUnauthorized struct {

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

VerifyMfaUnauthorized The currently supplied session does not have the correct access rights to request this resource

swagger:response verifyMfaUnauthorized

func NewVerifyMfaUnauthorized

func NewVerifyMfaUnauthorized() *VerifyMfaUnauthorized

NewVerifyMfaUnauthorized creates VerifyMfaUnauthorized with default headers values

func (*VerifyMfaUnauthorized) SetPayload

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

SetPayload sets the payload to the verify mfa unauthorized response

func (*VerifyMfaUnauthorized) WithPayload

WithPayload adds the payload to the verify mfa unauthorized response

func (*VerifyMfaUnauthorized) WriteResponse

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