hydra: github.com/ory/hydra/internal/httpclient/client/public Index | Files

package public

import "github.com/ory/hydra/internal/httpclient/client/public"

Index

Package Files

disconnect_user_parameters.go disconnect_user_responses.go discover_open_id_configuration_parameters.go discover_open_id_configuration_responses.go is_instance_ready_parameters.go is_instance_ready_responses.go oauth2_token_parameters.go oauth2_token_responses.go oauth_auth_parameters.go oauth_auth_responses.go public_client.go revoke_o_auth2_token_parameters.go revoke_o_auth2_token_responses.go userinfo_parameters.go userinfo_responses.go well_known_parameters.go well_known_responses.go

type Client Uses

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

Client for public API

func (*Client) DisconnectUser Uses

func (a *Client) DisconnectUser(params *DisconnectUserParams) error
DisconnectUser opens ID connect front backchannel enabled logout

This endpoint initiates and completes user logout at ORY Hydra and initiates OpenID Connect Front-/Back-channel logout:

https://openid.net/specs/openid-connect-frontchannel-1_0.html https://openid.net/specs/openid-connect-backchannel-1_0.html

func (*Client) DiscoverOpenIDConfiguration Uses

func (a *Client) DiscoverOpenIDConfiguration(params *DiscoverOpenIDConfigurationParams) (*DiscoverOpenIDConfigurationOK, error)
DiscoverOpenIDConfiguration opens ID connect discovery

The well known endpoint an be used to retrieve information for OpenID Connect clients. We encourage you to not roll

your own OpenID Connect client but to use an OpenID Connect client library instead. You can learn more on this flow at https://openid.net/specs/openid-connect-discovery-1_0.html .

Popular libraries for OpenID Connect clients include oidc-client-js (JavaScript), go-oidc (Golang), and others. For a full list of clients go here: https://openid.net/developers/certified/

func (*Client) IsInstanceReady Uses

func (a *Client) IsInstanceReady(params *IsInstanceReadyParams) (*IsInstanceReadyOK, error)
IsInstanceReady checks readiness status

This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g.

the database) are responsive as well.

If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set.

Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.

func (*Client) Oauth2Token Uses

func (a *Client) Oauth2Token(params *Oauth2TokenParams, authInfo runtime.ClientAuthInfoWriter) (*Oauth2TokenOK, error)
Oauth2Token thes o auth 2 0 token endpoint

The client makes a request to the token endpoint by sending the

following parameters using the "application/x-www-form-urlencoded" HTTP request entity-body.

> Do not implement a client for this endpoint yourself. Use a library. There are many libraries > available for any programming language. You can find a list of libraries here: https://oauth.net/code/ > > Do note that Hydra SDK does not implement this endpoint properly. Use one of the libraries listed above!

func (*Client) OauthAuth Uses

func (a *Client) OauthAuth(params *OauthAuthParams) error
OauthAuth thes o auth 2 0 authorize endpoint

This endpoint is not documented here because you should never use your own implementation to perform OAuth2 flows.

OAuth2 is a very popular protocol and a library for your programming language will exists.

To learn more about this flow please refer to the specification: https://tools.ietf.org/html/rfc6749

func (*Client) RevokeOAuth2Token Uses

func (a *Client) RevokeOAuth2Token(params *RevokeOAuth2TokenParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeOAuth2TokenOK, error)
RevokeOAuth2Token revokes o auth2 tokens

Revoking a token (both access and refresh) means that the tokens will be invalid. A revoked access token can no

longer be used to make access requests, and a revoked refresh token can no longer be used to refresh an access token. Revoking a refresh token also invalidates the access token that was created with it. A token may only be revoked by the client the token was generated for.

func (*Client) SetTransport Uses

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

SetTransport changes the transport on the client

func (*Client) Userinfo Uses

func (a *Client) Userinfo(params *UserinfoParams, authInfo runtime.ClientAuthInfoWriter) (*UserinfoOK, error)
Userinfo opens ID connect userinfo

This endpoint returns the payload of the ID Token, including the idTokenExtra values, of

the provided OAuth 2.0 Access Token.

For more information please [refer to the spec](http://openid.net/specs/openid-connect-core-1_0.html#UserInfo).

func (*Client) WellKnown Uses

func (a *Client) WellKnown(params *WellKnownParams) (*WellKnownOK, error)
WellKnown JSONs web keys discovery

This endpoint returns JSON Web Keys to be used as public keys for verifying OpenID Connect ID Tokens and,

if enabled, OAuth 2.0 JWT Access Tokens. This endpoint can be used with client libraries like [node-jwks-rsa](https://github.com/auth0/node-jwks-rsa) among others.

type ClientService Uses

type ClientService interface {
    DisconnectUser(params *DisconnectUserParams) error

    DiscoverOpenIDConfiguration(params *DiscoverOpenIDConfigurationParams) (*DiscoverOpenIDConfigurationOK, error)

    IsInstanceReady(params *IsInstanceReadyParams) (*IsInstanceReadyOK, error)

    Oauth2Token(params *Oauth2TokenParams, authInfo runtime.ClientAuthInfoWriter) (*Oauth2TokenOK, error)

    OauthAuth(params *OauthAuthParams) error

    RevokeOAuth2Token(params *RevokeOAuth2TokenParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeOAuth2TokenOK, error)

    Userinfo(params *UserinfoParams, authInfo runtime.ClientAuthInfoWriter) (*UserinfoOK, error)

    WellKnown(params *WellKnownParams) (*WellKnownOK, error)

    SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New Uses

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

New creates a new public API client.

type DisconnectUserFound Uses

type DisconnectUserFound struct {
}

DisconnectUserFound handles this case with default header values.

Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201.

func NewDisconnectUserFound Uses

func NewDisconnectUserFound() *DisconnectUserFound

NewDisconnectUserFound creates a DisconnectUserFound with default headers values

func (*DisconnectUserFound) Error Uses

func (o *DisconnectUserFound) Error() string

type DisconnectUserParams Uses

type DisconnectUserParams struct {
    Context    context.Context
    HTTPClient *http.Client
    // contains filtered or unexported fields
}

DisconnectUserParams contains all the parameters to send to the API endpoint for the disconnect user operation typically these are written to a http.Request

func NewDisconnectUserParams Uses

func NewDisconnectUserParams() *DisconnectUserParams

NewDisconnectUserParams creates a new DisconnectUserParams object with the default values initialized.

func NewDisconnectUserParamsWithContext Uses

func NewDisconnectUserParamsWithContext(ctx context.Context) *DisconnectUserParams

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

func NewDisconnectUserParamsWithHTTPClient Uses

func NewDisconnectUserParamsWithHTTPClient(client *http.Client) *DisconnectUserParams

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

func NewDisconnectUserParamsWithTimeout Uses

func NewDisconnectUserParamsWithTimeout(timeout time.Duration) *DisconnectUserParams

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

func (*DisconnectUserParams) SetContext Uses

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

SetContext adds the context to the disconnect user params

func (*DisconnectUserParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the disconnect user params

func (*DisconnectUserParams) SetTimeout Uses

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

SetTimeout adds the timeout to the disconnect user params

func (*DisconnectUserParams) WithContext Uses

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

WithContext adds the context to the disconnect user params

func (*DisconnectUserParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the disconnect user params

func (*DisconnectUserParams) WithTimeout Uses

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

WithTimeout adds the timeout to the disconnect user params

func (*DisconnectUserParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type DisconnectUserReader Uses

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

DisconnectUserReader is a Reader for the DisconnectUser structure.

func (*DisconnectUserReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

type DiscoverOpenIDConfigurationInternalServerError Uses

type DiscoverOpenIDConfigurationInternalServerError struct {
    Payload *models.GenericError
}

DiscoverOpenIDConfigurationInternalServerError handles this case with default header values.

genericError

func NewDiscoverOpenIDConfigurationInternalServerError Uses

func NewDiscoverOpenIDConfigurationInternalServerError() *DiscoverOpenIDConfigurationInternalServerError

NewDiscoverOpenIDConfigurationInternalServerError creates a DiscoverOpenIDConfigurationInternalServerError with default headers values

func (*DiscoverOpenIDConfigurationInternalServerError) Error Uses

func (o *DiscoverOpenIDConfigurationInternalServerError) Error() string

func (*DiscoverOpenIDConfigurationInternalServerError) GetPayload Uses

func (o *DiscoverOpenIDConfigurationInternalServerError) GetPayload() *models.GenericError

type DiscoverOpenIDConfigurationOK Uses

type DiscoverOpenIDConfigurationOK struct {
    Payload *models.WellKnown
}

DiscoverOpenIDConfigurationOK handles this case with default header values.

wellKnown

func NewDiscoverOpenIDConfigurationOK Uses

func NewDiscoverOpenIDConfigurationOK() *DiscoverOpenIDConfigurationOK

NewDiscoverOpenIDConfigurationOK creates a DiscoverOpenIDConfigurationOK with default headers values

func (*DiscoverOpenIDConfigurationOK) Error Uses

func (o *DiscoverOpenIDConfigurationOK) Error() string

func (*DiscoverOpenIDConfigurationOK) GetPayload Uses

func (o *DiscoverOpenIDConfigurationOK) GetPayload() *models.WellKnown

type DiscoverOpenIDConfigurationParams Uses

type DiscoverOpenIDConfigurationParams struct {
    Context    context.Context
    HTTPClient *http.Client
    // contains filtered or unexported fields
}

DiscoverOpenIDConfigurationParams contains all the parameters to send to the API endpoint for the discover open ID configuration operation typically these are written to a http.Request

func NewDiscoverOpenIDConfigurationParams Uses

func NewDiscoverOpenIDConfigurationParams() *DiscoverOpenIDConfigurationParams

NewDiscoverOpenIDConfigurationParams creates a new DiscoverOpenIDConfigurationParams object with the default values initialized.

func NewDiscoverOpenIDConfigurationParamsWithContext Uses

func NewDiscoverOpenIDConfigurationParamsWithContext(ctx context.Context) *DiscoverOpenIDConfigurationParams

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

func NewDiscoverOpenIDConfigurationParamsWithHTTPClient Uses

func NewDiscoverOpenIDConfigurationParamsWithHTTPClient(client *http.Client) *DiscoverOpenIDConfigurationParams

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

func NewDiscoverOpenIDConfigurationParamsWithTimeout Uses

func NewDiscoverOpenIDConfigurationParamsWithTimeout(timeout time.Duration) *DiscoverOpenIDConfigurationParams

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

func (*DiscoverOpenIDConfigurationParams) SetContext Uses

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

SetContext adds the context to the discover open ID configuration params

func (*DiscoverOpenIDConfigurationParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the discover open ID configuration params

func (*DiscoverOpenIDConfigurationParams) SetTimeout Uses

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

SetTimeout adds the timeout to the discover open ID configuration params

func (*DiscoverOpenIDConfigurationParams) WithContext Uses

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

WithContext adds the context to the discover open ID configuration params

func (*DiscoverOpenIDConfigurationParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the discover open ID configuration params

func (*DiscoverOpenIDConfigurationParams) WithTimeout Uses

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

WithTimeout adds the timeout to the discover open ID configuration params

func (*DiscoverOpenIDConfigurationParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type DiscoverOpenIDConfigurationReader Uses

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

DiscoverOpenIDConfigurationReader is a Reader for the DiscoverOpenIDConfiguration structure.

func (*DiscoverOpenIDConfigurationReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

type DiscoverOpenIDConfigurationUnauthorized Uses

type DiscoverOpenIDConfigurationUnauthorized struct {
    Payload *models.GenericError
}

DiscoverOpenIDConfigurationUnauthorized handles this case with default header values.

genericError

func NewDiscoverOpenIDConfigurationUnauthorized Uses

func NewDiscoverOpenIDConfigurationUnauthorized() *DiscoverOpenIDConfigurationUnauthorized

NewDiscoverOpenIDConfigurationUnauthorized creates a DiscoverOpenIDConfigurationUnauthorized with default headers values

func (*DiscoverOpenIDConfigurationUnauthorized) Error Uses

func (o *DiscoverOpenIDConfigurationUnauthorized) Error() string

func (*DiscoverOpenIDConfigurationUnauthorized) GetPayload Uses

func (o *DiscoverOpenIDConfigurationUnauthorized) GetPayload() *models.GenericError

type IsInstanceReadyOK Uses

type IsInstanceReadyOK struct {
    Payload *models.HealthStatus
}

IsInstanceReadyOK handles this case with default header values.

healthStatus

func NewIsInstanceReadyOK Uses

func NewIsInstanceReadyOK() *IsInstanceReadyOK

NewIsInstanceReadyOK creates a IsInstanceReadyOK with default headers values

func (*IsInstanceReadyOK) Error Uses

func (o *IsInstanceReadyOK) Error() string

func (*IsInstanceReadyOK) GetPayload Uses

func (o *IsInstanceReadyOK) GetPayload() *models.HealthStatus

type IsInstanceReadyParams Uses

type IsInstanceReadyParams struct {
    Context    context.Context
    HTTPClient *http.Client
    // contains filtered or unexported fields
}

IsInstanceReadyParams contains all the parameters to send to the API endpoint for the is instance ready operation typically these are written to a http.Request

func NewIsInstanceReadyParams Uses

func NewIsInstanceReadyParams() *IsInstanceReadyParams

NewIsInstanceReadyParams creates a new IsInstanceReadyParams object with the default values initialized.

func NewIsInstanceReadyParamsWithContext Uses

func NewIsInstanceReadyParamsWithContext(ctx context.Context) *IsInstanceReadyParams

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

func NewIsInstanceReadyParamsWithHTTPClient Uses

func NewIsInstanceReadyParamsWithHTTPClient(client *http.Client) *IsInstanceReadyParams

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

func NewIsInstanceReadyParamsWithTimeout Uses

func NewIsInstanceReadyParamsWithTimeout(timeout time.Duration) *IsInstanceReadyParams

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

func (*IsInstanceReadyParams) SetContext Uses

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

SetContext adds the context to the is instance ready params

func (*IsInstanceReadyParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the is instance ready params

func (*IsInstanceReadyParams) SetTimeout Uses

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

SetTimeout adds the timeout to the is instance ready params

func (*IsInstanceReadyParams) WithContext Uses

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

WithContext adds the context to the is instance ready params

func (*IsInstanceReadyParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the is instance ready params

func (*IsInstanceReadyParams) WithTimeout Uses

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

WithTimeout adds the timeout to the is instance ready params

func (*IsInstanceReadyParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type IsInstanceReadyReader Uses

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

IsInstanceReadyReader is a Reader for the IsInstanceReady structure.

func (*IsInstanceReadyReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

type IsInstanceReadyServiceUnavailable Uses

type IsInstanceReadyServiceUnavailable struct {
    Payload *models.HealthNotReadyStatus
}

IsInstanceReadyServiceUnavailable handles this case with default header values.

healthNotReadyStatus

func NewIsInstanceReadyServiceUnavailable Uses

func NewIsInstanceReadyServiceUnavailable() *IsInstanceReadyServiceUnavailable

NewIsInstanceReadyServiceUnavailable creates a IsInstanceReadyServiceUnavailable with default headers values

func (*IsInstanceReadyServiceUnavailable) Error Uses

func (o *IsInstanceReadyServiceUnavailable) Error() string

func (*IsInstanceReadyServiceUnavailable) GetPayload Uses

func (o *IsInstanceReadyServiceUnavailable) GetPayload() *models.HealthNotReadyStatus

type Oauth2TokenBadRequest Uses

type Oauth2TokenBadRequest struct {
    Payload *models.GenericError
}

Oauth2TokenBadRequest handles this case with default header values.

genericError

func NewOauth2TokenBadRequest Uses

func NewOauth2TokenBadRequest() *Oauth2TokenBadRequest

NewOauth2TokenBadRequest creates a Oauth2TokenBadRequest with default headers values

func (*Oauth2TokenBadRequest) Error Uses

func (o *Oauth2TokenBadRequest) Error() string

func (*Oauth2TokenBadRequest) GetPayload Uses

func (o *Oauth2TokenBadRequest) GetPayload() *models.GenericError

type Oauth2TokenInternalServerError Uses

type Oauth2TokenInternalServerError struct {
    Payload *models.GenericError
}

Oauth2TokenInternalServerError handles this case with default header values.

genericError

func NewOauth2TokenInternalServerError Uses

func NewOauth2TokenInternalServerError() *Oauth2TokenInternalServerError

NewOauth2TokenInternalServerError creates a Oauth2TokenInternalServerError with default headers values

func (*Oauth2TokenInternalServerError) Error Uses

func (o *Oauth2TokenInternalServerError) Error() string

func (*Oauth2TokenInternalServerError) GetPayload Uses

func (o *Oauth2TokenInternalServerError) GetPayload() *models.GenericError

type Oauth2TokenOK Uses

type Oauth2TokenOK struct {
    Payload *models.Oauth2TokenResponse
}

Oauth2TokenOK handles this case with default header values.

oauth2TokenResponse

func NewOauth2TokenOK Uses

func NewOauth2TokenOK() *Oauth2TokenOK

NewOauth2TokenOK creates a Oauth2TokenOK with default headers values

func (*Oauth2TokenOK) Error Uses

func (o *Oauth2TokenOK) Error() string

func (*Oauth2TokenOK) GetPayload Uses

func (o *Oauth2TokenOK) GetPayload() *models.Oauth2TokenResponse

type Oauth2TokenParams Uses

type Oauth2TokenParams struct {

    /*ClientID*/
    ClientID *string
    /*Code*/
    Code *string
    /*GrantType*/
    GrantType string
    /*RedirectURI*/
    RedirectURI *string
    /*RefreshToken*/
    RefreshToken *string

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

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

func NewOauth2TokenParams Uses

func NewOauth2TokenParams() *Oauth2TokenParams

NewOauth2TokenParams creates a new Oauth2TokenParams object with the default values initialized.

func NewOauth2TokenParamsWithContext Uses

func NewOauth2TokenParamsWithContext(ctx context.Context) *Oauth2TokenParams

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

func NewOauth2TokenParamsWithHTTPClient Uses

func NewOauth2TokenParamsWithHTTPClient(client *http.Client) *Oauth2TokenParams

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

func NewOauth2TokenParamsWithTimeout Uses

func NewOauth2TokenParamsWithTimeout(timeout time.Duration) *Oauth2TokenParams

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

func (*Oauth2TokenParams) SetClientID Uses

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

SetClientID adds the clientId to the oauth2 token params

func (*Oauth2TokenParams) SetCode Uses

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

SetCode adds the code to the oauth2 token params

func (*Oauth2TokenParams) SetContext Uses

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

SetContext adds the context to the oauth2 token params

func (*Oauth2TokenParams) SetGrantType Uses

func (o *Oauth2TokenParams) SetGrantType(grantType string)

SetGrantType adds the grantType to the oauth2 token params

func (*Oauth2TokenParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the oauth2 token params

func (*Oauth2TokenParams) SetRedirectURI Uses

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

SetRedirectURI adds the redirectUri to the oauth2 token params

func (*Oauth2TokenParams) SetRefreshToken Uses

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

SetRefreshToken adds the refreshToken to the oauth2 token params

func (*Oauth2TokenParams) SetTimeout Uses

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

SetTimeout adds the timeout to the oauth2 token params

func (*Oauth2TokenParams) WithClientID Uses

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

WithClientID adds the clientID to the oauth2 token params

func (*Oauth2TokenParams) WithCode Uses

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

WithCode adds the code to the oauth2 token params

func (*Oauth2TokenParams) WithContext Uses

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

WithContext adds the context to the oauth2 token params

func (*Oauth2TokenParams) WithGrantType Uses

func (o *Oauth2TokenParams) WithGrantType(grantType string) *Oauth2TokenParams

WithGrantType adds the grantType to the oauth2 token params

func (*Oauth2TokenParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the oauth2 token params

func (*Oauth2TokenParams) WithRedirectURI Uses

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

WithRedirectURI adds the redirectURI to the oauth2 token params

func (*Oauth2TokenParams) WithRefreshToken Uses

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

WithRefreshToken adds the refreshToken to the oauth2 token params

func (*Oauth2TokenParams) WithTimeout Uses

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

WithTimeout adds the timeout to the oauth2 token params

func (*Oauth2TokenParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type Oauth2TokenReader Uses

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

Oauth2TokenReader is a Reader for the Oauth2Token structure.

func (*Oauth2TokenReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

type Oauth2TokenUnauthorized Uses

type Oauth2TokenUnauthorized struct {
    Payload *models.GenericError
}

Oauth2TokenUnauthorized handles this case with default header values.

genericError

func NewOauth2TokenUnauthorized Uses

func NewOauth2TokenUnauthorized() *Oauth2TokenUnauthorized

NewOauth2TokenUnauthorized creates a Oauth2TokenUnauthorized with default headers values

func (*Oauth2TokenUnauthorized) Error Uses

func (o *Oauth2TokenUnauthorized) Error() string

func (*Oauth2TokenUnauthorized) GetPayload Uses

func (o *Oauth2TokenUnauthorized) GetPayload() *models.GenericError

type OauthAuthFound Uses

type OauthAuthFound struct {
}

OauthAuthFound handles this case with default header values.

Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201.

func NewOauthAuthFound Uses

func NewOauthAuthFound() *OauthAuthFound

NewOauthAuthFound creates a OauthAuthFound with default headers values

func (*OauthAuthFound) Error Uses

func (o *OauthAuthFound) Error() string

type OauthAuthInternalServerError Uses

type OauthAuthInternalServerError struct {
    Payload *models.GenericError
}

OauthAuthInternalServerError handles this case with default header values.

genericError

func NewOauthAuthInternalServerError Uses

func NewOauthAuthInternalServerError() *OauthAuthInternalServerError

NewOauthAuthInternalServerError creates a OauthAuthInternalServerError with default headers values

func (*OauthAuthInternalServerError) Error Uses

func (o *OauthAuthInternalServerError) Error() string

func (*OauthAuthInternalServerError) GetPayload Uses

func (o *OauthAuthInternalServerError) GetPayload() *models.GenericError

type OauthAuthParams Uses

type OauthAuthParams struct {
    Context    context.Context
    HTTPClient *http.Client
    // contains filtered or unexported fields
}

OauthAuthParams contains all the parameters to send to the API endpoint for the oauth auth operation typically these are written to a http.Request

func NewOauthAuthParams Uses

func NewOauthAuthParams() *OauthAuthParams

NewOauthAuthParams creates a new OauthAuthParams object with the default values initialized.

func NewOauthAuthParamsWithContext Uses

func NewOauthAuthParamsWithContext(ctx context.Context) *OauthAuthParams

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

func NewOauthAuthParamsWithHTTPClient Uses

func NewOauthAuthParamsWithHTTPClient(client *http.Client) *OauthAuthParams

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

func NewOauthAuthParamsWithTimeout Uses

func NewOauthAuthParamsWithTimeout(timeout time.Duration) *OauthAuthParams

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

func (*OauthAuthParams) SetContext Uses

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

SetContext adds the context to the oauth auth params

func (*OauthAuthParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the oauth auth params

func (*OauthAuthParams) SetTimeout Uses

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

SetTimeout adds the timeout to the oauth auth params

func (*OauthAuthParams) WithContext Uses

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

WithContext adds the context to the oauth auth params

func (*OauthAuthParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the oauth auth params

func (*OauthAuthParams) WithTimeout Uses

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

WithTimeout adds the timeout to the oauth auth params

func (*OauthAuthParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type OauthAuthReader Uses

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

OauthAuthReader is a Reader for the OauthAuth structure.

func (*OauthAuthReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

type OauthAuthUnauthorized Uses

type OauthAuthUnauthorized struct {
    Payload *models.GenericError
}

OauthAuthUnauthorized handles this case with default header values.

genericError

func NewOauthAuthUnauthorized Uses

func NewOauthAuthUnauthorized() *OauthAuthUnauthorized

NewOauthAuthUnauthorized creates a OauthAuthUnauthorized with default headers values

func (*OauthAuthUnauthorized) Error Uses

func (o *OauthAuthUnauthorized) Error() string

func (*OauthAuthUnauthorized) GetPayload Uses

func (o *OauthAuthUnauthorized) GetPayload() *models.GenericError

type RevokeOAuth2TokenInternalServerError Uses

type RevokeOAuth2TokenInternalServerError struct {
    Payload *models.GenericError
}

RevokeOAuth2TokenInternalServerError handles this case with default header values.

genericError

func NewRevokeOAuth2TokenInternalServerError Uses

func NewRevokeOAuth2TokenInternalServerError() *RevokeOAuth2TokenInternalServerError

NewRevokeOAuth2TokenInternalServerError creates a RevokeOAuth2TokenInternalServerError with default headers values

func (*RevokeOAuth2TokenInternalServerError) Error Uses

func (o *RevokeOAuth2TokenInternalServerError) Error() string

func (*RevokeOAuth2TokenInternalServerError) GetPayload Uses

func (o *RevokeOAuth2TokenInternalServerError) GetPayload() *models.GenericError

type RevokeOAuth2TokenOK Uses

type RevokeOAuth2TokenOK struct {
}

RevokeOAuth2TokenOK handles this case with default header values.

Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201.

func NewRevokeOAuth2TokenOK Uses

func NewRevokeOAuth2TokenOK() *RevokeOAuth2TokenOK

NewRevokeOAuth2TokenOK creates a RevokeOAuth2TokenOK with default headers values

func (*RevokeOAuth2TokenOK) Error Uses

func (o *RevokeOAuth2TokenOK) Error() string

type RevokeOAuth2TokenParams Uses

type RevokeOAuth2TokenParams struct {

    /*Token*/
    Token string

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

RevokeOAuth2TokenParams contains all the parameters to send to the API endpoint for the revoke o auth2 token operation typically these are written to a http.Request

func NewRevokeOAuth2TokenParams Uses

func NewRevokeOAuth2TokenParams() *RevokeOAuth2TokenParams

NewRevokeOAuth2TokenParams creates a new RevokeOAuth2TokenParams object with the default values initialized.

func NewRevokeOAuth2TokenParamsWithContext Uses

func NewRevokeOAuth2TokenParamsWithContext(ctx context.Context) *RevokeOAuth2TokenParams

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

func NewRevokeOAuth2TokenParamsWithHTTPClient Uses

func NewRevokeOAuth2TokenParamsWithHTTPClient(client *http.Client) *RevokeOAuth2TokenParams

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

func NewRevokeOAuth2TokenParamsWithTimeout Uses

func NewRevokeOAuth2TokenParamsWithTimeout(timeout time.Duration) *RevokeOAuth2TokenParams

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

func (*RevokeOAuth2TokenParams) SetContext Uses

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

SetContext adds the context to the revoke o auth2 token params

func (*RevokeOAuth2TokenParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the revoke o auth2 token params

func (*RevokeOAuth2TokenParams) SetTimeout Uses

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

SetTimeout adds the timeout to the revoke o auth2 token params

func (*RevokeOAuth2TokenParams) SetToken Uses

func (o *RevokeOAuth2TokenParams) SetToken(token string)

SetToken adds the token to the revoke o auth2 token params

func (*RevokeOAuth2TokenParams) WithContext Uses

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

WithContext adds the context to the revoke o auth2 token params

func (*RevokeOAuth2TokenParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the revoke o auth2 token params

func (*RevokeOAuth2TokenParams) WithTimeout Uses

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

WithTimeout adds the timeout to the revoke o auth2 token params

func (*RevokeOAuth2TokenParams) WithToken Uses

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

WithToken adds the token to the revoke o auth2 token params

func (*RevokeOAuth2TokenParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type RevokeOAuth2TokenReader Uses

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

RevokeOAuth2TokenReader is a Reader for the RevokeOAuth2Token structure.

func (*RevokeOAuth2TokenReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

type RevokeOAuth2TokenUnauthorized Uses

type RevokeOAuth2TokenUnauthorized struct {
    Payload *models.GenericError
}

RevokeOAuth2TokenUnauthorized handles this case with default header values.

genericError

func NewRevokeOAuth2TokenUnauthorized Uses

func NewRevokeOAuth2TokenUnauthorized() *RevokeOAuth2TokenUnauthorized

NewRevokeOAuth2TokenUnauthorized creates a RevokeOAuth2TokenUnauthorized with default headers values

func (*RevokeOAuth2TokenUnauthorized) Error Uses

func (o *RevokeOAuth2TokenUnauthorized) Error() string

func (*RevokeOAuth2TokenUnauthorized) GetPayload Uses

func (o *RevokeOAuth2TokenUnauthorized) GetPayload() *models.GenericError

type UserinfoInternalServerError Uses

type UserinfoInternalServerError struct {
    Payload *models.GenericError
}

UserinfoInternalServerError handles this case with default header values.

genericError

func NewUserinfoInternalServerError Uses

func NewUserinfoInternalServerError() *UserinfoInternalServerError

NewUserinfoInternalServerError creates a UserinfoInternalServerError with default headers values

func (*UserinfoInternalServerError) Error Uses

func (o *UserinfoInternalServerError) Error() string

func (*UserinfoInternalServerError) GetPayload Uses

func (o *UserinfoInternalServerError) GetPayload() *models.GenericError

type UserinfoOK Uses

type UserinfoOK struct {
    Payload *models.UserinfoResponse
}

UserinfoOK handles this case with default header values.

userinfoResponse

func NewUserinfoOK Uses

func NewUserinfoOK() *UserinfoOK

NewUserinfoOK creates a UserinfoOK with default headers values

func (*UserinfoOK) Error Uses

func (o *UserinfoOK) Error() string

func (*UserinfoOK) GetPayload Uses

func (o *UserinfoOK) GetPayload() *models.UserinfoResponse

type UserinfoParams Uses

type UserinfoParams struct {
    Context    context.Context
    HTTPClient *http.Client
    // contains filtered or unexported fields
}

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

func NewUserinfoParams Uses

func NewUserinfoParams() *UserinfoParams

NewUserinfoParams creates a new UserinfoParams object with the default values initialized.

func NewUserinfoParamsWithContext Uses

func NewUserinfoParamsWithContext(ctx context.Context) *UserinfoParams

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

func NewUserinfoParamsWithHTTPClient Uses

func NewUserinfoParamsWithHTTPClient(client *http.Client) *UserinfoParams

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

func NewUserinfoParamsWithTimeout Uses

func NewUserinfoParamsWithTimeout(timeout time.Duration) *UserinfoParams

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

func (*UserinfoParams) SetContext Uses

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

SetContext adds the context to the userinfo params

func (*UserinfoParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the userinfo params

func (*UserinfoParams) SetTimeout Uses

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

SetTimeout adds the timeout to the userinfo params

func (*UserinfoParams) WithContext Uses

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

WithContext adds the context to the userinfo params

func (*UserinfoParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the userinfo params

func (*UserinfoParams) WithTimeout Uses

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

WithTimeout adds the timeout to the userinfo params

func (*UserinfoParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type UserinfoReader Uses

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

UserinfoReader is a Reader for the Userinfo structure.

func (*UserinfoReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

type UserinfoUnauthorized Uses

type UserinfoUnauthorized struct {
    Payload *models.GenericError
}

UserinfoUnauthorized handles this case with default header values.

genericError

func NewUserinfoUnauthorized Uses

func NewUserinfoUnauthorized() *UserinfoUnauthorized

NewUserinfoUnauthorized creates a UserinfoUnauthorized with default headers values

func (*UserinfoUnauthorized) Error Uses

func (o *UserinfoUnauthorized) Error() string

func (*UserinfoUnauthorized) GetPayload Uses

func (o *UserinfoUnauthorized) GetPayload() *models.GenericError

type WellKnownInternalServerError Uses

type WellKnownInternalServerError struct {
    Payload *models.GenericError
}

WellKnownInternalServerError handles this case with default header values.

genericError

func NewWellKnownInternalServerError Uses

func NewWellKnownInternalServerError() *WellKnownInternalServerError

NewWellKnownInternalServerError creates a WellKnownInternalServerError with default headers values

func (*WellKnownInternalServerError) Error Uses

func (o *WellKnownInternalServerError) Error() string

func (*WellKnownInternalServerError) GetPayload Uses

func (o *WellKnownInternalServerError) GetPayload() *models.GenericError

type WellKnownOK Uses

type WellKnownOK struct {
    Payload *models.JSONWebKeySet
}

WellKnownOK handles this case with default header values.

JSONWebKeySet

func NewWellKnownOK Uses

func NewWellKnownOK() *WellKnownOK

NewWellKnownOK creates a WellKnownOK with default headers values

func (*WellKnownOK) Error Uses

func (o *WellKnownOK) Error() string

func (*WellKnownOK) GetPayload Uses

func (o *WellKnownOK) GetPayload() *models.JSONWebKeySet

type WellKnownParams Uses

type WellKnownParams struct {
    Context    context.Context
    HTTPClient *http.Client
    // contains filtered or unexported fields
}

WellKnownParams contains all the parameters to send to the API endpoint for the well known operation typically these are written to a http.Request

func NewWellKnownParams Uses

func NewWellKnownParams() *WellKnownParams

NewWellKnownParams creates a new WellKnownParams object with the default values initialized.

func NewWellKnownParamsWithContext Uses

func NewWellKnownParamsWithContext(ctx context.Context) *WellKnownParams

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

func NewWellKnownParamsWithHTTPClient Uses

func NewWellKnownParamsWithHTTPClient(client *http.Client) *WellKnownParams

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

func NewWellKnownParamsWithTimeout Uses

func NewWellKnownParamsWithTimeout(timeout time.Duration) *WellKnownParams

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

func (*WellKnownParams) SetContext Uses

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

SetContext adds the context to the well known params

func (*WellKnownParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the well known params

func (*WellKnownParams) SetTimeout Uses

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

SetTimeout adds the timeout to the well known params

func (*WellKnownParams) WithContext Uses

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

WithContext adds the context to the well known params

func (*WellKnownParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the well known params

func (*WellKnownParams) WithTimeout Uses

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

WithTimeout adds the timeout to the well known params

func (*WellKnownParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type WellKnownReader Uses

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

WellKnownReader is a Reader for the WellKnown structure.

func (*WellKnownReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

Package public imports 10 packages (graph) and is imported by 6 packages. Updated 2021-01-21. Refresh now. Tools for package owners.