token

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for token API

func (*Client) GetIntrospection

func (a *Client) GetIntrospection(params *GetIntrospectionParams) (*GetIntrospectionOK, error)

GetIntrospection gets introspection

The Introspection OAuth 2 Endpoint.

func (*Client) PostIntrospection

func (a *Client) PostIntrospection(params *PostIntrospectionParams) (*PostIntrospectionOK, error)

PostIntrospection posts introspection

The Introspection OAuth 2 Endpoint.

func (*Client) PostToken

func (a *Client) PostToken(params *PostTokenParams) (*PostTokenOK, error)

PostToken posts token

To obtain an Access Token, an ID Token, and optionally a Refresh Token, the RP (Client).

func (*Client) Revoke

func (a *Client) Revoke(params *RevokeParams) (*RevokeOK, error)

Revoke revokes

Revoke an Access Token or a Refresh Token, the RP (Client).

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetIntrospection(params *GetIntrospectionParams) (*GetIntrospectionOK, error)

	PostIntrospection(params *PostIntrospectionParams) (*PostIntrospectionOK, error)

	PostToken(params *PostTokenParams) (*PostTokenOK, error)

	Revoke(params *RevokeParams) (*RevokeOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new token API client.

type GetIntrospectionBadRequest

type GetIntrospectionBadRequest struct {
	Payload *models.ErrorResponse
}

GetIntrospectionBadRequest handles this case with default header values.

Error codes for introspection endpoint.

func NewGetIntrospectionBadRequest

func NewGetIntrospectionBadRequest() *GetIntrospectionBadRequest

NewGetIntrospectionBadRequest creates a GetIntrospectionBadRequest with default headers values

func (*GetIntrospectionBadRequest) Error

func (*GetIntrospectionBadRequest) GetPayload

type GetIntrospectionInternalServerError

type GetIntrospectionInternalServerError struct {
	Payload *models.ErrorResponse
}

GetIntrospectionInternalServerError handles this case with default header values.

Internal error occured. Please check log file for details.

func NewGetIntrospectionInternalServerError

func NewGetIntrospectionInternalServerError() *GetIntrospectionInternalServerError

NewGetIntrospectionInternalServerError creates a GetIntrospectionInternalServerError with default headers values

func (*GetIntrospectionInternalServerError) Error

func (*GetIntrospectionInternalServerError) GetPayload

type GetIntrospectionOK

type GetIntrospectionOK struct {
	Payload *models.IntrospectionResponse
}

GetIntrospectionOK handles this case with default header values.

OK

func NewGetIntrospectionOK

func NewGetIntrospectionOK() *GetIntrospectionOK

NewGetIntrospectionOK creates a GetIntrospectionOK with default headers values

func (*GetIntrospectionOK) Error

func (o *GetIntrospectionOK) Error() string

func (*GetIntrospectionOK) GetPayload

type GetIntrospectionParams

type GetIntrospectionParams struct {

	/*Authorization
	  Client Authorization details that contains the access token along with other details.

	*/
	Authorization string
	/*ResponseAsJwt
	  OPTIONAL. Boolean value with default value false. If true, returns introspection response as JWT (signed based on client configuration used for authentication to Introspection Endpoint).

	*/
	ResponseAsJwt *bool
	/*Token*/
	Token string
	/*TokenTypeHint
	  ID Token previously issued by the Authorization Server being passed as a hint about the End-User.

	*/
	TokenTypeHint *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetIntrospectionParams contains all the parameters to send to the API endpoint for the get introspection operation typically these are written to a http.Request

func NewGetIntrospectionParams

func NewGetIntrospectionParams() *GetIntrospectionParams

NewGetIntrospectionParams creates a new GetIntrospectionParams object with the default values initialized.

func NewGetIntrospectionParamsWithContext

func NewGetIntrospectionParamsWithContext(ctx context.Context) *GetIntrospectionParams

NewGetIntrospectionParamsWithContext creates a new GetIntrospectionParams object with the default values initialized, and the ability to set a context for a request

func NewGetIntrospectionParamsWithHTTPClient

func NewGetIntrospectionParamsWithHTTPClient(client *http.Client) *GetIntrospectionParams

NewGetIntrospectionParamsWithHTTPClient creates a new GetIntrospectionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetIntrospectionParamsWithTimeout

func NewGetIntrospectionParamsWithTimeout(timeout time.Duration) *GetIntrospectionParams

NewGetIntrospectionParamsWithTimeout creates a new GetIntrospectionParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetIntrospectionParams) SetAuthorization

func (o *GetIntrospectionParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the get introspection params

func (*GetIntrospectionParams) SetContext

func (o *GetIntrospectionParams) SetContext(ctx context.Context)

SetContext adds the context to the get introspection params

func (*GetIntrospectionParams) SetHTTPClient

func (o *GetIntrospectionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get introspection params

func (*GetIntrospectionParams) SetResponseAsJwt

func (o *GetIntrospectionParams) SetResponseAsJwt(responseAsJwt *bool)

SetResponseAsJwt adds the responseAsJwt to the get introspection params

func (*GetIntrospectionParams) SetTimeout

func (o *GetIntrospectionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get introspection params

func (*GetIntrospectionParams) SetToken

func (o *GetIntrospectionParams) SetToken(token string)

SetToken adds the token to the get introspection params

func (*GetIntrospectionParams) SetTokenTypeHint

func (o *GetIntrospectionParams) SetTokenTypeHint(tokenTypeHint *string)

SetTokenTypeHint adds the tokenTypeHint to the get introspection params

func (*GetIntrospectionParams) WithAuthorization

func (o *GetIntrospectionParams) WithAuthorization(authorization string) *GetIntrospectionParams

WithAuthorization adds the authorization to the get introspection params

func (*GetIntrospectionParams) WithContext

WithContext adds the context to the get introspection params

func (*GetIntrospectionParams) WithHTTPClient

func (o *GetIntrospectionParams) WithHTTPClient(client *http.Client) *GetIntrospectionParams

WithHTTPClient adds the HTTPClient to the get introspection params

func (*GetIntrospectionParams) WithResponseAsJwt

func (o *GetIntrospectionParams) WithResponseAsJwt(responseAsJwt *bool) *GetIntrospectionParams

WithResponseAsJwt adds the responseAsJwt to the get introspection params

func (*GetIntrospectionParams) WithTimeout

WithTimeout adds the timeout to the get introspection params

func (*GetIntrospectionParams) WithToken

WithToken adds the token to the get introspection params

func (*GetIntrospectionParams) WithTokenTypeHint

func (o *GetIntrospectionParams) WithTokenTypeHint(tokenTypeHint *string) *GetIntrospectionParams

WithTokenTypeHint adds the tokenTypeHint to the get introspection params

func (*GetIntrospectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetIntrospectionReader

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

GetIntrospectionReader is a Reader for the GetIntrospection structure.

func (*GetIntrospectionReader) ReadResponse

func (o *GetIntrospectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetIntrospectionUnauthorized

type GetIntrospectionUnauthorized struct {
	Payload *models.ErrorResponse
}

GetIntrospectionUnauthorized handles this case with default header values.

Unauthorized access request.

func NewGetIntrospectionUnauthorized

func NewGetIntrospectionUnauthorized() *GetIntrospectionUnauthorized

NewGetIntrospectionUnauthorized creates a GetIntrospectionUnauthorized with default headers values

func (*GetIntrospectionUnauthorized) Error

func (*GetIntrospectionUnauthorized) GetPayload

type PostIntrospectionBadRequest

type PostIntrospectionBadRequest struct {
	Payload *models.ErrorResponse
}

PostIntrospectionBadRequest handles this case with default header values.

Error codes for introspection endpoint.

func NewPostIntrospectionBadRequest

func NewPostIntrospectionBadRequest() *PostIntrospectionBadRequest

NewPostIntrospectionBadRequest creates a PostIntrospectionBadRequest with default headers values

func (*PostIntrospectionBadRequest) Error

func (*PostIntrospectionBadRequest) GetPayload

type PostIntrospectionInternalServerError

type PostIntrospectionInternalServerError struct {
	Payload *models.ErrorResponse
}

PostIntrospectionInternalServerError handles this case with default header values.

Internal error occured. Please check log file for details.

func NewPostIntrospectionInternalServerError

func NewPostIntrospectionInternalServerError() *PostIntrospectionInternalServerError

NewPostIntrospectionInternalServerError creates a PostIntrospectionInternalServerError with default headers values

func (*PostIntrospectionInternalServerError) Error

func (*PostIntrospectionInternalServerError) GetPayload

type PostIntrospectionOK

type PostIntrospectionOK struct {
	Payload *models.IntrospectionResponse
}

PostIntrospectionOK handles this case with default header values.

OK

func NewPostIntrospectionOK

func NewPostIntrospectionOK() *PostIntrospectionOK

NewPostIntrospectionOK creates a PostIntrospectionOK with default headers values

func (*PostIntrospectionOK) Error

func (o *PostIntrospectionOK) Error() string

func (*PostIntrospectionOK) GetPayload

type PostIntrospectionParams

type PostIntrospectionParams struct {

	/*Authorization
	  Client Authorization details that contains the access token along with other details.

	*/
	Authorization string
	/*Token
	  Client access token.

	*/
	Token string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostIntrospectionParams contains all the parameters to send to the API endpoint for the post introspection operation typically these are written to a http.Request

func NewPostIntrospectionParams

func NewPostIntrospectionParams() *PostIntrospectionParams

NewPostIntrospectionParams creates a new PostIntrospectionParams object with the default values initialized.

func NewPostIntrospectionParamsWithContext

func NewPostIntrospectionParamsWithContext(ctx context.Context) *PostIntrospectionParams

NewPostIntrospectionParamsWithContext creates a new PostIntrospectionParams object with the default values initialized, and the ability to set a context for a request

func NewPostIntrospectionParamsWithHTTPClient

func NewPostIntrospectionParamsWithHTTPClient(client *http.Client) *PostIntrospectionParams

NewPostIntrospectionParamsWithHTTPClient creates a new PostIntrospectionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostIntrospectionParamsWithTimeout

func NewPostIntrospectionParamsWithTimeout(timeout time.Duration) *PostIntrospectionParams

NewPostIntrospectionParamsWithTimeout creates a new PostIntrospectionParams object with the default values initialized, and the ability to set a timeout on a request

func (*PostIntrospectionParams) SetAuthorization

func (o *PostIntrospectionParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the post introspection params

func (*PostIntrospectionParams) SetContext

func (o *PostIntrospectionParams) SetContext(ctx context.Context)

SetContext adds the context to the post introspection params

func (*PostIntrospectionParams) SetHTTPClient

func (o *PostIntrospectionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post introspection params

func (*PostIntrospectionParams) SetTimeout

func (o *PostIntrospectionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post introspection params

func (*PostIntrospectionParams) SetToken

func (o *PostIntrospectionParams) SetToken(token string)

SetToken adds the token to the post introspection params

func (*PostIntrospectionParams) WithAuthorization

func (o *PostIntrospectionParams) WithAuthorization(authorization string) *PostIntrospectionParams

WithAuthorization adds the authorization to the post introspection params

func (*PostIntrospectionParams) WithContext

WithContext adds the context to the post introspection params

func (*PostIntrospectionParams) WithHTTPClient

func (o *PostIntrospectionParams) WithHTTPClient(client *http.Client) *PostIntrospectionParams

WithHTTPClient adds the HTTPClient to the post introspection params

func (*PostIntrospectionParams) WithTimeout

WithTimeout adds the timeout to the post introspection params

func (*PostIntrospectionParams) WithToken

WithToken adds the token to the post introspection params

func (*PostIntrospectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostIntrospectionReader

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

PostIntrospectionReader is a Reader for the PostIntrospection structure.

func (*PostIntrospectionReader) ReadResponse

func (o *PostIntrospectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostIntrospectionUnauthorized

type PostIntrospectionUnauthorized struct {
	Payload *models.ErrorResponse
}

PostIntrospectionUnauthorized handles this case with default header values.

Unauthorized access request.

func NewPostIntrospectionUnauthorized

func NewPostIntrospectionUnauthorized() *PostIntrospectionUnauthorized

NewPostIntrospectionUnauthorized creates a PostIntrospectionUnauthorized with default headers values

func (*PostIntrospectionUnauthorized) Error

func (*PostIntrospectionUnauthorized) GetPayload

type PostTokenBadRequest

type PostTokenBadRequest struct {
	Payload *models.ErrorResponse
}

PostTokenBadRequest handles this case with default header values.

Invalid parameters provided to endpoint.

func NewPostTokenBadRequest

func NewPostTokenBadRequest() *PostTokenBadRequest

NewPostTokenBadRequest creates a PostTokenBadRequest with default headers values

func (*PostTokenBadRequest) Error

func (o *PostTokenBadRequest) Error() string

func (*PostTokenBadRequest) GetPayload

func (o *PostTokenBadRequest) GetPayload() *models.ErrorResponse

type PostTokenForbidden

type PostTokenForbidden struct {
	Payload *models.ErrorResponse
}

PostTokenForbidden handles this case with default header values.

Invalid details provided hence access denied.

func NewPostTokenForbidden

func NewPostTokenForbidden() *PostTokenForbidden

NewPostTokenForbidden creates a PostTokenForbidden with default headers values

func (*PostTokenForbidden) Error

func (o *PostTokenForbidden) Error() string

func (*PostTokenForbidden) GetPayload

func (o *PostTokenForbidden) GetPayload() *models.ErrorResponse

type PostTokenInternalServerError

type PostTokenInternalServerError struct {
	Payload *models.ErrorResponse
}

PostTokenInternalServerError handles this case with default header values.

Internal error occured. Please check log file for details.

func NewPostTokenInternalServerError

func NewPostTokenInternalServerError() *PostTokenInternalServerError

NewPostTokenInternalServerError creates a PostTokenInternalServerError with default headers values

func (*PostTokenInternalServerError) Error

func (*PostTokenInternalServerError) GetPayload

type PostTokenOK

type PostTokenOK struct {
	Payload *models.TokenResponse
}

PostTokenOK handles this case with default header values.

OK

func NewPostTokenOK

func NewPostTokenOK() *PostTokenOK

NewPostTokenOK creates a PostTokenOK with default headers values

func (*PostTokenOK) Error

func (o *PostTokenOK) Error() string

func (*PostTokenOK) GetPayload

func (o *PostTokenOK) GetPayload() *models.TokenResponse

type PostTokenParams

type PostTokenParams struct {

	/*Assertion
	  Assertion.

	*/
	Assertion *string
	/*ClaimToken*/
	ClaimToken *string
	/*ClaimTokenFormat*/
	ClaimTokenFormat *string
	/*ClientID
	  OAuth 2.0 Client Identifier valid at the Authorization Server.

	*/
	ClientID *string
	/*ClientSecret
	  The client secret.  The client MAY omit the parameter if the client secret is an empty string.

	*/
	ClientSecret *string
	/*Code
	  Code which is returned by authorization endpoint. (For grant_type=authorization_code)

	*/
	Code *string
	/*CodeVerifier
	  The client's PKCE code verifier.

	*/
	CodeVerifier *string
	/*GrantType
	  Provide a list of the OAuth 2.0 grant types that the Client is declaring that it will restrict itself to using.

	*/
	GrantType []string
	/*Password
	  End-User password.

	*/
	Password *string
	/*Pct*/
	Pct *string
	/*RedirectURI
	  Redirection URI to which the response will be sent. This URI MUST exactly match one of the Redirection URI values for the Client pre-registered at the OpenID Provider.

	*/
	RedirectURI *string
	/*RefreshToken
	  Refresh token.

	*/
	RefreshToken *string
	/*Rpt*/
	Rpt *string
	/*Scope
	  OpenID Connect requests MUST contain the openid scope value. If the openid scope value is not present, the behavior is entirely unspecified. Other scope values MAY be present. Scope values used that are not understood by an implementation SHOULD be ignored.

	*/
	Scope []string
	/*Ticket*/
	Ticket *string
	/*Username
	  End-User username.

	*/
	Username *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostTokenParams contains all the parameters to send to the API endpoint for the post token operation typically these are written to a http.Request

func NewPostTokenParams

func NewPostTokenParams() *PostTokenParams

NewPostTokenParams creates a new PostTokenParams object with the default values initialized.

func NewPostTokenParamsWithContext

func NewPostTokenParamsWithContext(ctx context.Context) *PostTokenParams

NewPostTokenParamsWithContext creates a new PostTokenParams object with the default values initialized, and the ability to set a context for a request

func NewPostTokenParamsWithHTTPClient

func NewPostTokenParamsWithHTTPClient(client *http.Client) *PostTokenParams

NewPostTokenParamsWithHTTPClient creates a new PostTokenParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostTokenParamsWithTimeout

func NewPostTokenParamsWithTimeout(timeout time.Duration) *PostTokenParams

NewPostTokenParamsWithTimeout creates a new PostTokenParams object with the default values initialized, and the ability to set a timeout on a request

func (*PostTokenParams) SetAssertion

func (o *PostTokenParams) SetAssertion(assertion *string)

SetAssertion adds the assertion to the post token params

func (*PostTokenParams) SetClaimToken

func (o *PostTokenParams) SetClaimToken(claimToken *string)

SetClaimToken adds the claimToken to the post token params

func (*PostTokenParams) SetClaimTokenFormat

func (o *PostTokenParams) SetClaimTokenFormat(claimTokenFormat *string)

SetClaimTokenFormat adds the claimTokenFormat to the post token params

func (*PostTokenParams) SetClientID

func (o *PostTokenParams) SetClientID(clientID *string)

SetClientID adds the clientId to the post token params

func (*PostTokenParams) SetClientSecret

func (o *PostTokenParams) SetClientSecret(clientSecret *string)

SetClientSecret adds the clientSecret to the post token params

func (*PostTokenParams) SetCode

func (o *PostTokenParams) SetCode(code *string)

SetCode adds the code to the post token params

func (*PostTokenParams) SetCodeVerifier

func (o *PostTokenParams) SetCodeVerifier(codeVerifier *string)

SetCodeVerifier adds the codeVerifier to the post token params

func (*PostTokenParams) SetContext

func (o *PostTokenParams) SetContext(ctx context.Context)

SetContext adds the context to the post token params

func (*PostTokenParams) SetGrantType

func (o *PostTokenParams) SetGrantType(grantType []string)

SetGrantType adds the grantType to the post token params

func (*PostTokenParams) SetHTTPClient

func (o *PostTokenParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post token params

func (*PostTokenParams) SetPassword

func (o *PostTokenParams) SetPassword(password *string)

SetPassword adds the password to the post token params

func (*PostTokenParams) SetPct

func (o *PostTokenParams) SetPct(pct *string)

SetPct adds the pct to the post token params

func (*PostTokenParams) SetRedirectURI

func (o *PostTokenParams) SetRedirectURI(redirectURI *string)

SetRedirectURI adds the redirectUri to the post token params

func (*PostTokenParams) SetRefreshToken

func (o *PostTokenParams) SetRefreshToken(refreshToken *string)

SetRefreshToken adds the refreshToken to the post token params

func (*PostTokenParams) SetRpt

func (o *PostTokenParams) SetRpt(rpt *string)

SetRpt adds the rpt to the post token params

func (*PostTokenParams) SetScope

func (o *PostTokenParams) SetScope(scope []string)

SetScope adds the scope to the post token params

func (*PostTokenParams) SetTicket

func (o *PostTokenParams) SetTicket(ticket *string)

SetTicket adds the ticket to the post token params

func (*PostTokenParams) SetTimeout

func (o *PostTokenParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post token params

func (*PostTokenParams) SetUsername

func (o *PostTokenParams) SetUsername(username *string)

SetUsername adds the username to the post token params

func (*PostTokenParams) WithAssertion

func (o *PostTokenParams) WithAssertion(assertion *string) *PostTokenParams

WithAssertion adds the assertion to the post token params

func (*PostTokenParams) WithClaimToken

func (o *PostTokenParams) WithClaimToken(claimToken *string) *PostTokenParams

WithClaimToken adds the claimToken to the post token params

func (*PostTokenParams) WithClaimTokenFormat

func (o *PostTokenParams) WithClaimTokenFormat(claimTokenFormat *string) *PostTokenParams

WithClaimTokenFormat adds the claimTokenFormat to the post token params

func (*PostTokenParams) WithClientID

func (o *PostTokenParams) WithClientID(clientID *string) *PostTokenParams

WithClientID adds the clientID to the post token params

func (*PostTokenParams) WithClientSecret

func (o *PostTokenParams) WithClientSecret(clientSecret *string) *PostTokenParams

WithClientSecret adds the clientSecret to the post token params

func (*PostTokenParams) WithCode

func (o *PostTokenParams) WithCode(code *string) *PostTokenParams

WithCode adds the code to the post token params

func (*PostTokenParams) WithCodeVerifier

func (o *PostTokenParams) WithCodeVerifier(codeVerifier *string) *PostTokenParams

WithCodeVerifier adds the codeVerifier to the post token params

func (*PostTokenParams) WithContext

func (o *PostTokenParams) WithContext(ctx context.Context) *PostTokenParams

WithContext adds the context to the post token params

func (*PostTokenParams) WithGrantType

func (o *PostTokenParams) WithGrantType(grantType []string) *PostTokenParams

WithGrantType adds the grantType to the post token params

func (*PostTokenParams) WithHTTPClient

func (o *PostTokenParams) WithHTTPClient(client *http.Client) *PostTokenParams

WithHTTPClient adds the HTTPClient to the post token params

func (*PostTokenParams) WithPassword

func (o *PostTokenParams) WithPassword(password *string) *PostTokenParams

WithPassword adds the password to the post token params

func (*PostTokenParams) WithPct

func (o *PostTokenParams) WithPct(pct *string) *PostTokenParams

WithPct adds the pct to the post token params

func (*PostTokenParams) WithRedirectURI

func (o *PostTokenParams) WithRedirectURI(redirectURI *string) *PostTokenParams

WithRedirectURI adds the redirectURI to the post token params

func (*PostTokenParams) WithRefreshToken

func (o *PostTokenParams) WithRefreshToken(refreshToken *string) *PostTokenParams

WithRefreshToken adds the refreshToken to the post token params

func (*PostTokenParams) WithRpt

func (o *PostTokenParams) WithRpt(rpt *string) *PostTokenParams

WithRpt adds the rpt to the post token params

func (*PostTokenParams) WithScope

func (o *PostTokenParams) WithScope(scope []string) *PostTokenParams

WithScope adds the scope to the post token params

func (*PostTokenParams) WithTicket

func (o *PostTokenParams) WithTicket(ticket *string) *PostTokenParams

WithTicket adds the ticket to the post token params

func (*PostTokenParams) WithTimeout

func (o *PostTokenParams) WithTimeout(timeout time.Duration) *PostTokenParams

WithTimeout adds the timeout to the post token params

func (*PostTokenParams) WithUsername

func (o *PostTokenParams) WithUsername(username *string) *PostTokenParams

WithUsername adds the username to the post token params

func (*PostTokenParams) WriteToRequest

func (o *PostTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostTokenReader

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

PostTokenReader is a Reader for the PostToken structure.

func (*PostTokenReader) ReadResponse

func (o *PostTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostTokenUnauthorized

type PostTokenUnauthorized struct {
	Payload *models.ErrorResponse
}

PostTokenUnauthorized handles this case with default header values.

Unauthorized access request.

func NewPostTokenUnauthorized

func NewPostTokenUnauthorized() *PostTokenUnauthorized

NewPostTokenUnauthorized creates a PostTokenUnauthorized with default headers values

func (*PostTokenUnauthorized) Error

func (o *PostTokenUnauthorized) Error() string

func (*PostTokenUnauthorized) GetPayload

func (o *PostTokenUnauthorized) GetPayload() *models.ErrorResponse

type RevokeBadRequest

type RevokeBadRequest struct {
	Payload *models.ErrorResponse
}

RevokeBadRequest handles this case with default header values.

Invalid parameters provided to endpoint.

func NewRevokeBadRequest

func NewRevokeBadRequest() *RevokeBadRequest

NewRevokeBadRequest creates a RevokeBadRequest with default headers values

func (*RevokeBadRequest) Error

func (o *RevokeBadRequest) Error() string

func (*RevokeBadRequest) GetPayload

func (o *RevokeBadRequest) GetPayload() *models.ErrorResponse

type RevokeOK

type RevokeOK struct {
	Payload interface{}
}

RevokeOK handles this case with default header values.

OK

func NewRevokeOK

func NewRevokeOK() *RevokeOK

NewRevokeOK creates a RevokeOK with default headers values

func (*RevokeOK) Error

func (o *RevokeOK) Error() string

func (*RevokeOK) GetPayload

func (o *RevokeOK) GetPayload() interface{}

type RevokeParams

type RevokeParams struct {

	/*Token
	  The token that the client wants to get revoked.

	*/
	Token string
	/*TokenTypeHint
	  A hint about the type of the token submitted for revocation.

	*/
	TokenTypeHint *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RevokeParams contains all the parameters to send to the API endpoint for the revoke operation typically these are written to a http.Request

func NewRevokeParams

func NewRevokeParams() *RevokeParams

NewRevokeParams creates a new RevokeParams object with the default values initialized.

func NewRevokeParamsWithContext

func NewRevokeParamsWithContext(ctx context.Context) *RevokeParams

NewRevokeParamsWithContext creates a new RevokeParams object with the default values initialized, and the ability to set a context for a request

func NewRevokeParamsWithHTTPClient

func NewRevokeParamsWithHTTPClient(client *http.Client) *RevokeParams

NewRevokeParamsWithHTTPClient creates a new RevokeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewRevokeParamsWithTimeout

func NewRevokeParamsWithTimeout(timeout time.Duration) *RevokeParams

NewRevokeParamsWithTimeout creates a new RevokeParams object with the default values initialized, and the ability to set a timeout on a request

func (*RevokeParams) SetContext

func (o *RevokeParams) SetContext(ctx context.Context)

SetContext adds the context to the revoke params

func (*RevokeParams) SetHTTPClient

func (o *RevokeParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the revoke params

func (*RevokeParams) SetTimeout

func (o *RevokeParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the revoke params

func (*RevokeParams) SetToken

func (o *RevokeParams) SetToken(token string)

SetToken adds the token to the revoke params

func (*RevokeParams) SetTokenTypeHint

func (o *RevokeParams) SetTokenTypeHint(tokenTypeHint *string)

SetTokenTypeHint adds the tokenTypeHint to the revoke params

func (*RevokeParams) WithContext

func (o *RevokeParams) WithContext(ctx context.Context) *RevokeParams

WithContext adds the context to the revoke params

func (*RevokeParams) WithHTTPClient

func (o *RevokeParams) WithHTTPClient(client *http.Client) *RevokeParams

WithHTTPClient adds the HTTPClient to the revoke params

func (*RevokeParams) WithTimeout

func (o *RevokeParams) WithTimeout(timeout time.Duration) *RevokeParams

WithTimeout adds the timeout to the revoke params

func (*RevokeParams) WithToken

func (o *RevokeParams) WithToken(token string) *RevokeParams

WithToken adds the token to the revoke params

func (*RevokeParams) WithTokenTypeHint

func (o *RevokeParams) WithTokenTypeHint(tokenTypeHint *string) *RevokeParams

WithTokenTypeHint adds the tokenTypeHint to the revoke params

func (*RevokeParams) WriteToRequest

func (o *RevokeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RevokeReader

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

RevokeReader is a Reader for the Revoke structure.

func (*RevokeReader) ReadResponse

func (o *RevokeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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