Documentation ¶
Index ¶
- type AuthorizationFound
- type AuthorizationParams
- func (o *AuthorizationParams) SetClientID(clientID string)
- func (o *AuthorizationParams) SetContext(ctx context.Context)
- func (o *AuthorizationParams) SetHTTPClient(client *http.Client)
- func (o *AuthorizationParams) SetLogin(login *string)
- func (o *AuthorizationParams) SetPassword(password *string)
- func (o *AuthorizationParams) SetRedirectURI(redirectURI string)
- func (o *AuthorizationParams) SetResponseType(responseType string)
- func (o *AuthorizationParams) SetScope(scope *string)
- func (o *AuthorizationParams) SetState(state *string)
- func (o *AuthorizationParams) SetTimeout(timeout time.Duration)
- func (o *AuthorizationParams) WithClientID(clientID string) *AuthorizationParams
- func (o *AuthorizationParams) WithContext(ctx context.Context) *AuthorizationParams
- func (o *AuthorizationParams) WithHTTPClient(client *http.Client) *AuthorizationParams
- func (o *AuthorizationParams) WithLogin(login *string) *AuthorizationParams
- func (o *AuthorizationParams) WithPassword(password *string) *AuthorizationParams
- func (o *AuthorizationParams) WithRedirectURI(redirectURI string) *AuthorizationParams
- func (o *AuthorizationParams) WithResponseType(responseType string) *AuthorizationParams
- func (o *AuthorizationParams) WithScope(scope *string) *AuthorizationParams
- func (o *AuthorizationParams) WithState(state *string) *AuthorizationParams
- func (o *AuthorizationParams) WithTimeout(timeout time.Duration) *AuthorizationParams
- func (o *AuthorizationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AuthorizationReader
- type Client
- func (a *Client) Authorization(params *AuthorizationParams, authInfo runtime.ClientAuthInfoWriter) (*AuthorizationFound, error)
- func (a *Client) AuthorizationShort(params *AuthorizationParams, authInfo runtime.ClientAuthInfoWriter) (*AuthorizationFound, error)
- func (a *Client) GetJWKS(params *GetJWKSParams, authInfo runtime.ClientAuthInfoWriter) (*GetJWKSOK, error)
- func (a *Client) GetJWKSShort(params *GetJWKSParams, authInfo runtime.ClientAuthInfoWriter) (*GetJWKSOK, error)
- func (a *Client) GetRevocationList(params *GetRevocationListParams, authInfo runtime.ClientAuthInfoWriter) (*GetRevocationListOK, *GetRevocationListUnauthorized, error)
- func (a *Client) GetRevocationListShort(params *GetRevocationListParams, authInfo runtime.ClientAuthInfoWriter) (*GetRevocationListOK, error)
- func (a *Client) PlatformTokenRequestHandler(params *PlatformTokenRequestHandlerParams, ...) (*PlatformTokenRequestHandlerOK, *PlatformTokenRequestHandlerBadRequest, ...)
- func (a *Client) PlatformTokenRequestHandlerShort(params *PlatformTokenRequestHandlerParams, ...) (*PlatformTokenRequestHandlerOK, error)
- func (a *Client) RevokeAUser(params *RevokeAUserParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeAUserOK, *RevokeAUserBadRequest, *RevokeAUserUnauthorized, error)
- func (a *Client) RevokeAUserShort(params *RevokeAUserParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeAUserOK, error)
- func (a *Client) RevokeToken(params *RevokeTokenParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeTokenOK, *RevokeTokenBadRequest, *RevokeTokenUnauthorized, error)
- func (a *Client) RevokeTokenShort(params *RevokeTokenParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeTokenOK, error)
- func (a *Client) RevokeUser(params *RevokeUserParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeUserOK, *RevokeUserUnauthorized, error)
- func (a *Client) RevokeUserShort(params *RevokeUserParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeUserOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) TokenGrant(params *TokenGrantParams, authInfo runtime.ClientAuthInfoWriter) (*TokenGrantOK, *TokenGrantBadRequest, *TokenGrantUnauthorized, error)
- func (a *Client) TokenGrantShort(params *TokenGrantParams, authInfo runtime.ClientAuthInfoWriter) (*TokenGrantOK, error)
- func (a *Client) VerifyToken(params *VerifyTokenParams, authInfo runtime.ClientAuthInfoWriter) (*VerifyTokenOK, *VerifyTokenBadRequest, error)
- func (a *Client) VerifyTokenShort(params *VerifyTokenParams, authInfo runtime.ClientAuthInfoWriter) (*VerifyTokenOK, error)
- type ClientService
- type GetJWKSOK
- type GetJWKSParams
- func (o *GetJWKSParams) SetContext(ctx context.Context)
- func (o *GetJWKSParams) SetHTTPClient(client *http.Client)
- func (o *GetJWKSParams) SetTimeout(timeout time.Duration)
- func (o *GetJWKSParams) WithContext(ctx context.Context) *GetJWKSParams
- func (o *GetJWKSParams) WithHTTPClient(client *http.Client) *GetJWKSParams
- func (o *GetJWKSParams) WithTimeout(timeout time.Duration) *GetJWKSParams
- func (o *GetJWKSParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetJWKSReader
- type GetRevocationListOK
- type GetRevocationListParams
- func NewGetRevocationListParams() *GetRevocationListParams
- func NewGetRevocationListParamsWithContext(ctx context.Context) *GetRevocationListParams
- func NewGetRevocationListParamsWithHTTPClient(client *http.Client) *GetRevocationListParams
- func NewGetRevocationListParamsWithTimeout(timeout time.Duration) *GetRevocationListParams
- func (o *GetRevocationListParams) SetContext(ctx context.Context)
- func (o *GetRevocationListParams) SetHTTPClient(client *http.Client)
- func (o *GetRevocationListParams) SetTimeout(timeout time.Duration)
- func (o *GetRevocationListParams) WithContext(ctx context.Context) *GetRevocationListParams
- func (o *GetRevocationListParams) WithHTTPClient(client *http.Client) *GetRevocationListParams
- func (o *GetRevocationListParams) WithTimeout(timeout time.Duration) *GetRevocationListParams
- func (o *GetRevocationListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRevocationListReader
- type GetRevocationListUnauthorized
- type PlatformTokenRequestHandlerBadRequest
- type PlatformTokenRequestHandlerOK
- type PlatformTokenRequestHandlerParams
- func NewPlatformTokenRequestHandlerParams() *PlatformTokenRequestHandlerParams
- func NewPlatformTokenRequestHandlerParamsWithContext(ctx context.Context) *PlatformTokenRequestHandlerParams
- func NewPlatformTokenRequestHandlerParamsWithHTTPClient(client *http.Client) *PlatformTokenRequestHandlerParams
- func NewPlatformTokenRequestHandlerParamsWithTimeout(timeout time.Duration) *PlatformTokenRequestHandlerParams
- func (o *PlatformTokenRequestHandlerParams) SetContext(ctx context.Context)
- func (o *PlatformTokenRequestHandlerParams) SetDeviceID(deviceID *string)
- func (o *PlatformTokenRequestHandlerParams) SetHTTPClient(client *http.Client)
- func (o *PlatformTokenRequestHandlerParams) SetNamespace(namespace string)
- func (o *PlatformTokenRequestHandlerParams) SetPlatformID(platformID string)
- func (o *PlatformTokenRequestHandlerParams) SetPlatformToken(platformToken *string)
- func (o *PlatformTokenRequestHandlerParams) SetTimeout(timeout time.Duration)
- func (o *PlatformTokenRequestHandlerParams) WithContext(ctx context.Context) *PlatformTokenRequestHandlerParams
- func (o *PlatformTokenRequestHandlerParams) WithDeviceID(deviceID *string) *PlatformTokenRequestHandlerParams
- func (o *PlatformTokenRequestHandlerParams) WithHTTPClient(client *http.Client) *PlatformTokenRequestHandlerParams
- func (o *PlatformTokenRequestHandlerParams) WithNamespace(namespace string) *PlatformTokenRequestHandlerParams
- func (o *PlatformTokenRequestHandlerParams) WithPlatformID(platformID string) *PlatformTokenRequestHandlerParams
- func (o *PlatformTokenRequestHandlerParams) WithPlatformToken(platformToken *string) *PlatformTokenRequestHandlerParams
- func (o *PlatformTokenRequestHandlerParams) WithTimeout(timeout time.Duration) *PlatformTokenRequestHandlerParams
- func (o *PlatformTokenRequestHandlerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PlatformTokenRequestHandlerReader
- type PlatformTokenRequestHandlerUnauthorized
- type RevokeAUserBadRequest
- type RevokeAUserOK
- type RevokeAUserParams
- func (o *RevokeAUserParams) SetContext(ctx context.Context)
- func (o *RevokeAUserParams) SetHTTPClient(client *http.Client)
- func (o *RevokeAUserParams) SetTimeout(timeout time.Duration)
- func (o *RevokeAUserParams) SetUserID(userID string)
- func (o *RevokeAUserParams) WithContext(ctx context.Context) *RevokeAUserParams
- func (o *RevokeAUserParams) WithHTTPClient(client *http.Client) *RevokeAUserParams
- func (o *RevokeAUserParams) WithTimeout(timeout time.Duration) *RevokeAUserParams
- func (o *RevokeAUserParams) WithUserID(userID string) *RevokeAUserParams
- func (o *RevokeAUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RevokeAUserReader
- type RevokeAUserUnauthorized
- type RevokeTokenBadRequest
- type RevokeTokenOK
- type RevokeTokenParams
- func (o *RevokeTokenParams) SetContext(ctx context.Context)
- func (o *RevokeTokenParams) SetHTTPClient(client *http.Client)
- func (o *RevokeTokenParams) SetTimeout(timeout time.Duration)
- func (o *RevokeTokenParams) SetToken(token string)
- func (o *RevokeTokenParams) WithContext(ctx context.Context) *RevokeTokenParams
- func (o *RevokeTokenParams) WithHTTPClient(client *http.Client) *RevokeTokenParams
- func (o *RevokeTokenParams) WithTimeout(timeout time.Duration) *RevokeTokenParams
- func (o *RevokeTokenParams) WithToken(token string) *RevokeTokenParams
- func (o *RevokeTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RevokeTokenReader
- type RevokeTokenUnauthorized
- type RevokeUserOK
- type RevokeUserParams
- func (o *RevokeUserParams) SetContext(ctx context.Context)
- func (o *RevokeUserParams) SetHTTPClient(client *http.Client)
- func (o *RevokeUserParams) SetNamespace(namespace string)
- func (o *RevokeUserParams) SetTimeout(timeout time.Duration)
- func (o *RevokeUserParams) SetUserID(userID string)
- func (o *RevokeUserParams) WithContext(ctx context.Context) *RevokeUserParams
- func (o *RevokeUserParams) WithHTTPClient(client *http.Client) *RevokeUserParams
- func (o *RevokeUserParams) WithNamespace(namespace string) *RevokeUserParams
- func (o *RevokeUserParams) WithTimeout(timeout time.Duration) *RevokeUserParams
- func (o *RevokeUserParams) WithUserID(userID string) *RevokeUserParams
- func (o *RevokeUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RevokeUserReader
- type RevokeUserUnauthorized
- type TokenGrantBadRequest
- type TokenGrantOK
- type TokenGrantParams
- func (o *TokenGrantParams) SetCode(code *string)
- func (o *TokenGrantParams) SetContext(ctx context.Context)
- func (o *TokenGrantParams) SetDeviceID(deviceID *string)
- func (o *TokenGrantParams) SetExtendExp(extendExp *bool)
- func (o *TokenGrantParams) SetGrantType(grantType string)
- func (o *TokenGrantParams) SetHTTPClient(client *http.Client)
- func (o *TokenGrantParams) SetNamespace(namespace *string)
- func (o *TokenGrantParams) SetPassword(password *string)
- func (o *TokenGrantParams) SetRedirectURI(redirectURI *string)
- func (o *TokenGrantParams) SetRefreshToken(refreshToken *string)
- func (o *TokenGrantParams) SetTimeout(timeout time.Duration)
- func (o *TokenGrantParams) SetUsername(username *string)
- func (o *TokenGrantParams) WithCode(code *string) *TokenGrantParams
- func (o *TokenGrantParams) WithContext(ctx context.Context) *TokenGrantParams
- func (o *TokenGrantParams) WithDeviceID(deviceID *string) *TokenGrantParams
- func (o *TokenGrantParams) WithExtendExp(extendExp *bool) *TokenGrantParams
- func (o *TokenGrantParams) WithGrantType(grantType string) *TokenGrantParams
- func (o *TokenGrantParams) WithHTTPClient(client *http.Client) *TokenGrantParams
- func (o *TokenGrantParams) WithNamespace(namespace *string) *TokenGrantParams
- func (o *TokenGrantParams) WithPassword(password *string) *TokenGrantParams
- func (o *TokenGrantParams) WithRedirectURI(redirectURI *string) *TokenGrantParams
- func (o *TokenGrantParams) WithRefreshToken(refreshToken *string) *TokenGrantParams
- func (o *TokenGrantParams) WithTimeout(timeout time.Duration) *TokenGrantParams
- func (o *TokenGrantParams) WithUsername(username *string) *TokenGrantParams
- func (o *TokenGrantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TokenGrantReader
- type TokenGrantUnauthorized
- type VerifyTokenBadRequest
- type VerifyTokenOK
- type VerifyTokenParams
- func (o *VerifyTokenParams) SetContext(ctx context.Context)
- func (o *VerifyTokenParams) SetHTTPClient(client *http.Client)
- func (o *VerifyTokenParams) SetTimeout(timeout time.Duration)
- func (o *VerifyTokenParams) SetToken(token string)
- func (o *VerifyTokenParams) WithContext(ctx context.Context) *VerifyTokenParams
- func (o *VerifyTokenParams) WithHTTPClient(client *http.Client) *VerifyTokenParams
- func (o *VerifyTokenParams) WithTimeout(timeout time.Duration) *VerifyTokenParams
- func (o *VerifyTokenParams) WithToken(token string) *VerifyTokenParams
- func (o *VerifyTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type VerifyTokenReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationFound ¶ added in v0.2.0
type AuthorizationFound struct { }
AuthorizationFound handles this case with default header values.
Found
func NewAuthorizationFound ¶ added in v0.2.0
func NewAuthorizationFound() *AuthorizationFound
NewAuthorizationFound creates a AuthorizationFound with default headers values
func (*AuthorizationFound) Error ¶ added in v0.2.0
func (o *AuthorizationFound) Error() string
type AuthorizationParams ¶ added in v0.2.0
type AuthorizationParams struct { /*ClientID Client id */ ClientID string /*Login User Name */ Login *string /*Password Password */ Password *string /*RedirectURI Redirect URI. The URI has to match one of the URIs set in client. */ RedirectURI string /*ResponseType Response Type. Allowed values ['code', 'token']. */ ResponseType string /*Scope Scope. The scope of request by roleId. Accept multiple roleIds separated by whitespace. */ Scope *string /*State State. Random value for preventing cross-site request forgery used by client. */ State *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AuthorizationParams contains all the parameters to send to the API endpoint for the authorization operation typically these are written to a http.Request
func NewAuthorizationParams ¶ added in v0.2.0
func NewAuthorizationParams() *AuthorizationParams
NewAuthorizationParams creates a new AuthorizationParams object with the default values initialized.
func NewAuthorizationParamsWithContext ¶ added in v0.2.0
func NewAuthorizationParamsWithContext(ctx context.Context) *AuthorizationParams
NewAuthorizationParamsWithContext creates a new AuthorizationParams object with the default values initialized, and the ability to set a context for a request
func NewAuthorizationParamsWithHTTPClient ¶ added in v0.2.0
func NewAuthorizationParamsWithHTTPClient(client *http.Client) *AuthorizationParams
NewAuthorizationParamsWithHTTPClient creates a new AuthorizationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAuthorizationParamsWithTimeout ¶ added in v0.2.0
func NewAuthorizationParamsWithTimeout(timeout time.Duration) *AuthorizationParams
NewAuthorizationParamsWithTimeout creates a new AuthorizationParams object with the default values initialized, and the ability to set a timeout on a request
func (*AuthorizationParams) SetClientID ¶ added in v0.2.0
func (o *AuthorizationParams) SetClientID(clientID string)
SetClientID adds the clientId to the authorization params
func (*AuthorizationParams) SetContext ¶ added in v0.2.0
func (o *AuthorizationParams) SetContext(ctx context.Context)
SetContext adds the context to the authorization params
func (*AuthorizationParams) SetHTTPClient ¶ added in v0.2.0
func (o *AuthorizationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the authorization params
func (*AuthorizationParams) SetLogin ¶ added in v0.2.0
func (o *AuthorizationParams) SetLogin(login *string)
SetLogin adds the login to the authorization params
func (*AuthorizationParams) SetPassword ¶ added in v0.2.0
func (o *AuthorizationParams) SetPassword(password *string)
SetPassword adds the password to the authorization params
func (*AuthorizationParams) SetRedirectURI ¶ added in v0.2.0
func (o *AuthorizationParams) SetRedirectURI(redirectURI string)
SetRedirectURI adds the redirectUri to the authorization params
func (*AuthorizationParams) SetResponseType ¶ added in v0.2.0
func (o *AuthorizationParams) SetResponseType(responseType string)
SetResponseType adds the responseType to the authorization params
func (*AuthorizationParams) SetScope ¶ added in v0.2.0
func (o *AuthorizationParams) SetScope(scope *string)
SetScope adds the scope to the authorization params
func (*AuthorizationParams) SetState ¶ added in v0.2.0
func (o *AuthorizationParams) SetState(state *string)
SetState adds the state to the authorization params
func (*AuthorizationParams) SetTimeout ¶ added in v0.2.0
func (o *AuthorizationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the authorization params
func (*AuthorizationParams) WithClientID ¶ added in v0.2.0
func (o *AuthorizationParams) WithClientID(clientID string) *AuthorizationParams
WithClientID adds the clientID to the authorization params
func (*AuthorizationParams) WithContext ¶ added in v0.2.0
func (o *AuthorizationParams) WithContext(ctx context.Context) *AuthorizationParams
WithContext adds the context to the authorization params
func (*AuthorizationParams) WithHTTPClient ¶ added in v0.2.0
func (o *AuthorizationParams) WithHTTPClient(client *http.Client) *AuthorizationParams
WithHTTPClient adds the HTTPClient to the authorization params
func (*AuthorizationParams) WithLogin ¶ added in v0.2.0
func (o *AuthorizationParams) WithLogin(login *string) *AuthorizationParams
WithLogin adds the login to the authorization params
func (*AuthorizationParams) WithPassword ¶ added in v0.2.0
func (o *AuthorizationParams) WithPassword(password *string) *AuthorizationParams
WithPassword adds the password to the authorization params
func (*AuthorizationParams) WithRedirectURI ¶ added in v0.2.0
func (o *AuthorizationParams) WithRedirectURI(redirectURI string) *AuthorizationParams
WithRedirectURI adds the redirectURI to the authorization params
func (*AuthorizationParams) WithResponseType ¶ added in v0.2.0
func (o *AuthorizationParams) WithResponseType(responseType string) *AuthorizationParams
WithResponseType adds the responseType to the authorization params
func (*AuthorizationParams) WithScope ¶ added in v0.2.0
func (o *AuthorizationParams) WithScope(scope *string) *AuthorizationParams
WithScope adds the scope to the authorization params
func (*AuthorizationParams) WithState ¶ added in v0.2.0
func (o *AuthorizationParams) WithState(state *string) *AuthorizationParams
WithState adds the state to the authorization params
func (*AuthorizationParams) WithTimeout ¶ added in v0.2.0
func (o *AuthorizationParams) WithTimeout(timeout time.Duration) *AuthorizationParams
WithTimeout adds the timeout to the authorization params
func (*AuthorizationParams) WriteToRequest ¶ added in v0.2.0
func (o *AuthorizationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AuthorizationReader ¶ added in v0.2.0
type AuthorizationReader struct {
// contains filtered or unexported fields
}
AuthorizationReader is a Reader for the Authorization structure.
func (*AuthorizationReader) ReadResponse ¶ added in v0.2.0
func (o *AuthorizationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for o auth API
func (*Client) Authorization ¶ added in v0.2.0
func (a *Client) Authorization(params *AuthorizationParams, authInfo runtime.ClientAuthInfoWriter) (*AuthorizationFound, error)
Authorization os auth2 authorize API The endpoint supports two response types:<br/> <p><strong>1. Response Type == "code":</strong></p> <p>The endpoint returns an authorization code that will be used by the IAM client to exchange for an access token. It supports two different headers, the basic and the bearer header. Each behaves differently.</p>
<ul> <li>
<p><strong>The basic header</strong></p> <p>The basic header’s value is the base64 of the client ID and client secret. It is used by the developer whenever the developer authorizes a user on a same namespace.</p>
</li> <li>
<p><strong>The bearer header</strong></p> <p>The bearer header’s value is an access token. It is used by the developer whenever the developer authorizes a user on a different namespace. The endpoint validates user’s entitlement on the designated namespace for making sure the user is authorized for a designated namespace.</p>
</li> </ul> <p>Following are the responses returned by the endpoint:</p> <ul> <li><p><strong>Authorize success</strong>: redirects to the given URL with the following information: ?code={authorization code}&state={state}</p></li> <li><p><strong>Authorize failure</strong>: redirects to the given URL with the following information:?error=access_denied&error_description=...</p></li> </ul>
<p><strong>2. Response Type == "token":</strong></p>
<ul> <li>
<p><strong>Authorize success</strong>: redirects to the given URL with the following information:</p> <p>#access_token={accesstoken}&expires_in={expiration duration in seconds}&token_type=Bearer</p>
</li> <li>
<p><strong>Authorize failure</strong>: redirects to the given URL with the following information:</p> <p>?error=access_denied&error_description=...</p>
</li> </ul>
func (*Client) AuthorizationShort ¶ added in v0.8.0
func (a *Client) AuthorizationShort(params *AuthorizationParams, authInfo runtime.ClientAuthInfoWriter) (*AuthorizationFound, error)
func (*Client) GetJWKS ¶ added in v0.2.0
func (a *Client) GetJWKS(params *GetJWKSParams, authInfo runtime.ClientAuthInfoWriter) (*GetJWKSOK, error)
GetJWKS JSONs web key set for verifying j w t <p>This endpoint serves public keys for verifying JWT access tokens generated by this service.</p> <p>When a client application wants to verify a JWT token, it needs to get the 'kid' value found in the JWT token header and use it to look up the corresponding public key from a set returned by this endpoint. The client application can then use that public key to verify the JWT.</p> <p>A client application might cache the keys so it doesn't need to do request every time it needs to verify a JWT token. If a client application caches the keys and a key with the same 'kid' cannot be found in the cache, it should then try to refresh the keys by making a request to this endpoint again.</p> <p>Please refer to the RFC for more information about JWK (JSON Web Key): https://tools.ietf.org/html/rfc7517</p>
func (*Client) GetJWKSShort ¶ added in v0.8.0
func (a *Client) GetJWKSShort(params *GetJWKSParams, authInfo runtime.ClientAuthInfoWriter) (*GetJWKSOK, error)
func (*Client) GetRevocationList ¶ added in v0.2.0
func (a *Client) GetRevocationList(params *GetRevocationListParams, authInfo runtime.ClientAuthInfoWriter) (*GetRevocationListOK, *GetRevocationListUnauthorized, error)
GetRevocationList os auth2 revocation list API <p>This endpoint will return a list of revoked users and revoked tokens. List of revoked tokens in bloom filter format. This endpoint requires all requests to have Authorization header set with Basic access authentication constructed from client id and client secret.</p> <p>The bloom filter uses MurmurHash3 algorithm for hashing the values</p>
func (*Client) GetRevocationListShort ¶ added in v0.8.0
func (a *Client) GetRevocationListShort(params *GetRevocationListParams, authInfo runtime.ClientAuthInfoWriter) (*GetRevocationListOK, error)
func (*Client) PlatformTokenRequestHandler ¶ added in v0.2.0
func (a *Client) PlatformTokenRequestHandler(params *PlatformTokenRequestHandlerParams, authInfo runtime.ClientAuthInfoWriter) (*PlatformTokenRequestHandlerOK, *PlatformTokenRequestHandlerBadRequest, *PlatformTokenRequestHandlerUnauthorized, error)
PlatformTokenRequestHandler os auth2 access token generation specific to platform <h2>The endpoint is going to be deprecated at 2 July, 2018. Please use this instead: oauth/platforms/{platformId}/token</h2> <p> This endpoint requires all requests to have Authorization header set with Basic access authentication constructed from client id and client secret. For publisher-game namespace schema : Specify only either platform_token or device_id. Device token grant should be requested along with device_id parameter against game namespace. Another 3rd party platform token grant should be requested along with platform_token parameter against publisher namespace. </p> <p> Supported platforms: </p> <ol><li><strong>steamopenid</strong>: Steam's user authentication method using OpenID 2.0. The expected value of the platform token is the URL generated by Steam on web authentication</li></ol> <p>The JWT contains user's active bans with its expiry date. List of ban types can be obtained from /iam/bans.</p>
func (*Client) PlatformTokenRequestHandlerShort ¶ added in v0.8.0
func (a *Client) PlatformTokenRequestHandlerShort(params *PlatformTokenRequestHandlerParams, authInfo runtime.ClientAuthInfoWriter) (*PlatformTokenRequestHandlerOK, error)
func (*Client) RevokeAUser ¶ added in v0.2.0
func (a *Client) RevokeAUser(params *RevokeAUserParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeAUserOK, *RevokeAUserBadRequest, *RevokeAUserUnauthorized, error)
RevokeAUser os auth2 user revocation API <h2>The endpoint is going to be deprecated at 21 August, 2018. Please use this instead: oauth/namespaces/{namespace}/users/{userId}/revoke</h2> <p>This endpoint revokes a user. </p> <p>This endpoint requires all requests to have Authorization header set with Bearer access authentication with valid access token.</p> <p>Required permission 'NAMESPACE:{namespace}:USER:{userID}:ADMIN [UPDATE]'</p> <p>When other clients know that the userID has been revoked and the token is issued before the revocation, forcing a new token will contain banned permissions. </p>
func (*Client) RevokeAUserShort ¶ added in v0.8.0
func (a *Client) RevokeAUserShort(params *RevokeAUserParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeAUserOK, error)
func (*Client) RevokeToken ¶ added in v0.2.0
func (a *Client) RevokeToken(params *RevokeTokenParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeTokenOK, *RevokeTokenBadRequest, *RevokeTokenUnauthorized, error)
RevokeToken os auth2 token revocation API <h1>Deprecated at August 30, 2019. Please use the /v3/oauth/revoke endpoint instead</h1> <p>Revokes a token.</p> <p>This endpoint requires all requests to have Authorization header set with Basic access authentication constructed from client id and client secret or Bearer access authentication with valid access token.</p>
func (*Client) RevokeTokenShort ¶ added in v0.8.0
func (a *Client) RevokeTokenShort(params *RevokeTokenParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeTokenOK, error)
func (*Client) RevokeUser ¶ added in v0.2.0
func (a *Client) RevokeUser(params *RevokeUserParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeUserOK, *RevokeUserUnauthorized, error)
RevokeUser revokes user s tokens <p>This endpoint requires all requests to have authorization header set with bearer token.</p> <p>Required permission 'ADMIN:NAMESPACE:{namespace}:USER:{userId} [UPDATE]'</p> <p>The endpoint revokes all access tokens and refresh tokens a user has prior the revocation time. It is a convenient feature for the developer (or admin) who wanted to revokes all user's access tokens and refresh tokens generated before some period of time.</p>
func (*Client) RevokeUserShort ¶ added in v0.8.0
func (a *Client) RevokeUserShort(params *RevokeUserParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeUserOK, error)
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) TokenGrant ¶
func (a *Client) TokenGrant(params *TokenGrantParams, authInfo runtime.ClientAuthInfoWriter) (*TokenGrantOK, *TokenGrantBadRequest, *TokenGrantUnauthorized, error)
TokenGrant os auth2 access token generation endpoint <p>This endpoint requires all requests to have <code>Authorization</code> header set with <code>Basic</code> access authentication constructed from client id and client secret.</p> <p>This endpoint supports different <strong>grant types</strong>:</p><ol> <li>Grant Type == <code>client_credentials</code>:<br /> &nbsp;&nbsp;&nbsp; This endpoint will check the client credentials provided through Authorization header.</li> <li>Grant Type == <code>password</code>:<br /> &nbsp;&nbsp;&nbsp; The grant type to use for authenticating a user, whether it's by email / username and password combination or through platform.</li> <li>Grant Type == <code>refresh_token</code>:<br /> &nbsp;&nbsp;&nbsp; Used to get a new access token for a valid refresh token.</li> <li>Grant Type == <code>authorization_code<code>:<br /> &nbsp;&nbsp;&nbsp; It generates the user token by given the authorization code which generated in "/authorize" API response. It should also pass in the redirect_uri, which should be the same as generating the authorization code request.</li></ol> <p>For platform authentication, use grant type <code>password</code>. The <code>username</code> field would be in form of <code>platform:&lt;platform type&gt;</code>, for example <code>platform:steam</code> for Steam. For the <code>password</code> field, set it to the authentication/authorization ticket or token obtainable through the respective platform SDK after authenticated the user to the platform. Supported platforms:</p><ul> <li><strong>steam</strong> - use <code>platform:steam</code> as the username and use the authentication ticket obtained from Steam through the Steam SDK as the password.</li> <li><strong>ps4</strong> - use <code>platform:ps4</code> as the username and use the authorization code obtained from the PlayStation Network through a player PS4 unit as the password.</li> <li><strong>live</strong> - use <code>platform:live</code> as the username and use token obtained from Xbox Secure Token Service (XSTS) as the password.</li> <li><strong>oculus</strong> - use <code>platform:oculus</code> as the username and use the <code>user_id:nonce</code> as password obtained from Oculus through the Oculus SDK.</li></ul></p> <p>The access token and refresh token are in form of JWT token. An access token JWT contains data which structure is similar to the Response Class below, but without OAuth-related data. To verify a token, use the public keys obtained from the <code>/jwks</code> endpoint below.</p>
<h2>Access Token Content</h2> <p>Following is the access token’s content:</p> <ul> <li>
<p><strong>namespace</strong>. It is the namespace the token was generated from.</p>
</li> <li>
<p><strong>display_name</strong>. The display name of the sub. It is empty if the token is generated from the client credential</p>
</li> <li>
<p><strong>roles</strong>. The sub’s roles. It is empty if the token is generated from the client credential</p>
</li> <li>
<p><strong>namespace_roles</strong>. The sub’s roles scoped to namespace. Improvement from roles, which make the role scoped to specific namespace instead of global to publisher namespace</p>
</li> <li>
<p><strong>permissions</strong>. The sub or aud’ permissions</p>
</li> <li>
<p><strong>bans</strong>. The sub’s list of bans. It is used by the IAM client for validating the token.</p>
</li> <li>
<p><strong>jflgs</strong>. It stands for Justice Flags. It is a special flag used for storing additional status information regarding the sub. It is implemented as a bit mask. Following explains what each bit represents:</p>
<ul>
<li><p>1: Email Address Verified</p></li> <li><p>2: Phone Number Verified</p></li> <li><p>4: Anonymous</p></li>
</ul> </li> <li>
<p><strong>aud</strong>. The aud is the client ID.</p>
</li> <li>
<p><strong>iat</strong>. The time the token issues at. It is in Epoch time format</p>
</li> <li>
<p><strong>exp</strong>. The time the token expires. It is in Epoch time format</p>
</li> <li>
<p><strong>sub</strong>. The UserID. The sub is omitted if the token is generated from client credential</p>
</li> </ul> <h2>Bans</h2> <p>The JWT contains user's active bans with its expiry date. List of ban types can be obtained from /bans.</p> <h2>Track Login History</h2> <p>This endpoint will track login history to detect suspicious login activity, please provide "device_id" (alphanumeric) in request header parameter otherwise we will set to "unknown".</p> <p>Align with General Data Protection Regulation in Europe, user login history will be kept within 28 days by default"</p>
func (*Client) TokenGrantShort ¶ added in v0.8.0
func (a *Client) TokenGrantShort(params *TokenGrantParams, authInfo runtime.ClientAuthInfoWriter) (*TokenGrantOK, error)
func (*Client) VerifyToken ¶ added in v0.2.0
func (a *Client) VerifyToken(params *VerifyTokenParams, authInfo runtime.ClientAuthInfoWriter) (*VerifyTokenOK, *VerifyTokenBadRequest, error)
VerifyToken os auth2 token verification API
This endpoint requires all requests to have Authorization header set with Basic access authentication constructed from client id and client secret.
func (*Client) VerifyTokenShort ¶ added in v0.8.0
func (a *Client) VerifyTokenShort(params *VerifyTokenParams, authInfo runtime.ClientAuthInfoWriter) (*VerifyTokenOK, error)
type ClientService ¶
type ClientService interface { Authorization(params *AuthorizationParams, authInfo runtime.ClientAuthInfoWriter) (*AuthorizationFound, error) AuthorizationShort(params *AuthorizationParams, authInfo runtime.ClientAuthInfoWriter) (*AuthorizationFound, error) GetJWKS(params *GetJWKSParams, authInfo runtime.ClientAuthInfoWriter) (*GetJWKSOK, error) GetJWKSShort(params *GetJWKSParams, authInfo runtime.ClientAuthInfoWriter) (*GetJWKSOK, error) GetRevocationList(params *GetRevocationListParams, authInfo runtime.ClientAuthInfoWriter) (*GetRevocationListOK, *GetRevocationListUnauthorized, error) GetRevocationListShort(params *GetRevocationListParams, authInfo runtime.ClientAuthInfoWriter) (*GetRevocationListOK, error) PlatformTokenRequestHandler(params *PlatformTokenRequestHandlerParams, authInfo runtime.ClientAuthInfoWriter) (*PlatformTokenRequestHandlerOK, *PlatformTokenRequestHandlerBadRequest, *PlatformTokenRequestHandlerUnauthorized, error) PlatformTokenRequestHandlerShort(params *PlatformTokenRequestHandlerParams, authInfo runtime.ClientAuthInfoWriter) (*PlatformTokenRequestHandlerOK, error) RevokeAUser(params *RevokeAUserParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeAUserOK, *RevokeAUserBadRequest, *RevokeAUserUnauthorized, error) RevokeAUserShort(params *RevokeAUserParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeAUserOK, error) RevokeToken(params *RevokeTokenParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeTokenOK, *RevokeTokenBadRequest, *RevokeTokenUnauthorized, error) RevokeTokenShort(params *RevokeTokenParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeTokenOK, error) RevokeUser(params *RevokeUserParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeUserOK, *RevokeUserUnauthorized, error) RevokeUserShort(params *RevokeUserParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeUserOK, error) TokenGrant(params *TokenGrantParams, authInfo runtime.ClientAuthInfoWriter) (*TokenGrantOK, *TokenGrantBadRequest, *TokenGrantUnauthorized, error) TokenGrantShort(params *TokenGrantParams, authInfo runtime.ClientAuthInfoWriter) (*TokenGrantOK, error) VerifyToken(params *VerifyTokenParams, authInfo runtime.ClientAuthInfoWriter) (*VerifyTokenOK, *VerifyTokenBadRequest, error) VerifyTokenShort(params *VerifyTokenParams, authInfo runtime.ClientAuthInfoWriter) (*VerifyTokenOK, 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 o auth API client.
type GetJWKSOK ¶ added in v0.2.0
type GetJWKSOK struct {
Payload *iamclientmodels.OauthcommonJWKSet
}
GetJWKSOK handles this case with default header values.
JWKS returned
func NewGetJWKSOK ¶ added in v0.2.0
func NewGetJWKSOK() *GetJWKSOK
NewGetJWKSOK creates a GetJWKSOK with default headers values
func (*GetJWKSOK) GetPayload ¶ added in v0.2.0
func (o *GetJWKSOK) GetPayload() *iamclientmodels.OauthcommonJWKSet
type GetJWKSParams ¶ added in v0.2.0
type GetJWKSParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetJWKSParams contains all the parameters to send to the API endpoint for the get j w k s operation typically these are written to a http.Request
func NewGetJWKSParams ¶ added in v0.2.0
func NewGetJWKSParams() *GetJWKSParams
NewGetJWKSParams creates a new GetJWKSParams object with the default values initialized.
func NewGetJWKSParamsWithContext ¶ added in v0.2.0
func NewGetJWKSParamsWithContext(ctx context.Context) *GetJWKSParams
NewGetJWKSParamsWithContext creates a new GetJWKSParams object with the default values initialized, and the ability to set a context for a request
func NewGetJWKSParamsWithHTTPClient ¶ added in v0.2.0
func NewGetJWKSParamsWithHTTPClient(client *http.Client) *GetJWKSParams
NewGetJWKSParamsWithHTTPClient creates a new GetJWKSParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetJWKSParamsWithTimeout ¶ added in v0.2.0
func NewGetJWKSParamsWithTimeout(timeout time.Duration) *GetJWKSParams
NewGetJWKSParamsWithTimeout creates a new GetJWKSParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetJWKSParams) SetContext ¶ added in v0.2.0
func (o *GetJWKSParams) SetContext(ctx context.Context)
SetContext adds the context to the get j w k s params
func (*GetJWKSParams) SetHTTPClient ¶ added in v0.2.0
func (o *GetJWKSParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get j w k s params
func (*GetJWKSParams) SetTimeout ¶ added in v0.2.0
func (o *GetJWKSParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get j w k s params
func (*GetJWKSParams) WithContext ¶ added in v0.2.0
func (o *GetJWKSParams) WithContext(ctx context.Context) *GetJWKSParams
WithContext adds the context to the get j w k s params
func (*GetJWKSParams) WithHTTPClient ¶ added in v0.2.0
func (o *GetJWKSParams) WithHTTPClient(client *http.Client) *GetJWKSParams
WithHTTPClient adds the HTTPClient to the get j w k s params
func (*GetJWKSParams) WithTimeout ¶ added in v0.2.0
func (o *GetJWKSParams) WithTimeout(timeout time.Duration) *GetJWKSParams
WithTimeout adds the timeout to the get j w k s params
func (*GetJWKSParams) WriteToRequest ¶ added in v0.2.0
func (o *GetJWKSParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetJWKSReader ¶ added in v0.2.0
type GetJWKSReader struct {
// contains filtered or unexported fields
}
GetJWKSReader is a Reader for the GetJWKS structure.
func (*GetJWKSReader) ReadResponse ¶ added in v0.2.0
func (o *GetJWKSReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRevocationListOK ¶ added in v0.2.0
type GetRevocationListOK struct {
Payload *iamclientmodels.OauthapiRevocationList
}
GetRevocationListOK handles this case with default header values.
revocation list returned
func NewGetRevocationListOK ¶ added in v0.2.0
func NewGetRevocationListOK() *GetRevocationListOK
NewGetRevocationListOK creates a GetRevocationListOK with default headers values
func (*GetRevocationListOK) Error ¶ added in v0.2.0
func (o *GetRevocationListOK) Error() string
func (*GetRevocationListOK) GetPayload ¶ added in v0.2.0
func (o *GetRevocationListOK) GetPayload() *iamclientmodels.OauthapiRevocationList
type GetRevocationListParams ¶ added in v0.2.0
type GetRevocationListParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRevocationListParams contains all the parameters to send to the API endpoint for the get revocation list operation typically these are written to a http.Request
func NewGetRevocationListParams ¶ added in v0.2.0
func NewGetRevocationListParams() *GetRevocationListParams
NewGetRevocationListParams creates a new GetRevocationListParams object with the default values initialized.
func NewGetRevocationListParamsWithContext ¶ added in v0.2.0
func NewGetRevocationListParamsWithContext(ctx context.Context) *GetRevocationListParams
NewGetRevocationListParamsWithContext creates a new GetRevocationListParams object with the default values initialized, and the ability to set a context for a request
func NewGetRevocationListParamsWithHTTPClient ¶ added in v0.2.0
func NewGetRevocationListParamsWithHTTPClient(client *http.Client) *GetRevocationListParams
NewGetRevocationListParamsWithHTTPClient creates a new GetRevocationListParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetRevocationListParamsWithTimeout ¶ added in v0.2.0
func NewGetRevocationListParamsWithTimeout(timeout time.Duration) *GetRevocationListParams
NewGetRevocationListParamsWithTimeout creates a new GetRevocationListParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetRevocationListParams) SetContext ¶ added in v0.2.0
func (o *GetRevocationListParams) SetContext(ctx context.Context)
SetContext adds the context to the get revocation list params
func (*GetRevocationListParams) SetHTTPClient ¶ added in v0.2.0
func (o *GetRevocationListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get revocation list params
func (*GetRevocationListParams) SetTimeout ¶ added in v0.2.0
func (o *GetRevocationListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get revocation list params
func (*GetRevocationListParams) WithContext ¶ added in v0.2.0
func (o *GetRevocationListParams) WithContext(ctx context.Context) *GetRevocationListParams
WithContext adds the context to the get revocation list params
func (*GetRevocationListParams) WithHTTPClient ¶ added in v0.2.0
func (o *GetRevocationListParams) WithHTTPClient(client *http.Client) *GetRevocationListParams
WithHTTPClient adds the HTTPClient to the get revocation list params
func (*GetRevocationListParams) WithTimeout ¶ added in v0.2.0
func (o *GetRevocationListParams) WithTimeout(timeout time.Duration) *GetRevocationListParams
WithTimeout adds the timeout to the get revocation list params
func (*GetRevocationListParams) WriteToRequest ¶ added in v0.2.0
func (o *GetRevocationListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRevocationListReader ¶ added in v0.2.0
type GetRevocationListReader struct {
// contains filtered or unexported fields
}
GetRevocationListReader is a Reader for the GetRevocationList structure.
func (*GetRevocationListReader) ReadResponse ¶ added in v0.2.0
func (o *GetRevocationListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRevocationListUnauthorized ¶ added in v0.2.0
type GetRevocationListUnauthorized struct { }
GetRevocationListUnauthorized handles this case with default header values.
Invalid basic auth header
func NewGetRevocationListUnauthorized ¶ added in v0.2.0
func NewGetRevocationListUnauthorized() *GetRevocationListUnauthorized
NewGetRevocationListUnauthorized creates a GetRevocationListUnauthorized with default headers values
func (*GetRevocationListUnauthorized) Error ¶ added in v0.2.0
func (o *GetRevocationListUnauthorized) Error() string
type PlatformTokenRequestHandlerBadRequest ¶ added in v0.2.0
type PlatformTokenRequestHandlerBadRequest struct {
Payload *iamclientmodels.OauthmodelErrorResponse
}
PlatformTokenRequestHandlerBadRequest handles this case with default header values.
General request error
func NewPlatformTokenRequestHandlerBadRequest ¶ added in v0.2.0
func NewPlatformTokenRequestHandlerBadRequest() *PlatformTokenRequestHandlerBadRequest
NewPlatformTokenRequestHandlerBadRequest creates a PlatformTokenRequestHandlerBadRequest with default headers values
func (*PlatformTokenRequestHandlerBadRequest) Error ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerBadRequest) Error() string
func (*PlatformTokenRequestHandlerBadRequest) GetPayload ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerBadRequest) GetPayload() *iamclientmodels.OauthmodelErrorResponse
type PlatformTokenRequestHandlerOK ¶ added in v0.2.0
type PlatformTokenRequestHandlerOK struct {
Payload *iamclientmodels.OauthmodelTokenResponse
}
PlatformTokenRequestHandlerOK handles this case with default header values.
Access Token returned
func NewPlatformTokenRequestHandlerOK ¶ added in v0.2.0
func NewPlatformTokenRequestHandlerOK() *PlatformTokenRequestHandlerOK
NewPlatformTokenRequestHandlerOK creates a PlatformTokenRequestHandlerOK with default headers values
func (*PlatformTokenRequestHandlerOK) Error ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerOK) Error() string
func (*PlatformTokenRequestHandlerOK) GetPayload ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerOK) GetPayload() *iamclientmodels.OauthmodelTokenResponse
type PlatformTokenRequestHandlerParams ¶ added in v0.2.0
type PlatformTokenRequestHandlerParams struct { /*DeviceID Device/hardware identifier */ DeviceID *string /*Namespace Requested namespace for token grant */ Namespace string /*PlatformID Platform ID to login with */ PlatformID string /*PlatformToken Token from platform auth */ PlatformToken *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PlatformTokenRequestHandlerParams contains all the parameters to send to the API endpoint for the platform token request handler operation typically these are written to a http.Request
func NewPlatformTokenRequestHandlerParams ¶ added in v0.2.0
func NewPlatformTokenRequestHandlerParams() *PlatformTokenRequestHandlerParams
NewPlatformTokenRequestHandlerParams creates a new PlatformTokenRequestHandlerParams object with the default values initialized.
func NewPlatformTokenRequestHandlerParamsWithContext ¶ added in v0.2.0
func NewPlatformTokenRequestHandlerParamsWithContext(ctx context.Context) *PlatformTokenRequestHandlerParams
NewPlatformTokenRequestHandlerParamsWithContext creates a new PlatformTokenRequestHandlerParams object with the default values initialized, and the ability to set a context for a request
func NewPlatformTokenRequestHandlerParamsWithHTTPClient ¶ added in v0.2.0
func NewPlatformTokenRequestHandlerParamsWithHTTPClient(client *http.Client) *PlatformTokenRequestHandlerParams
NewPlatformTokenRequestHandlerParamsWithHTTPClient creates a new PlatformTokenRequestHandlerParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPlatformTokenRequestHandlerParamsWithTimeout ¶ added in v0.2.0
func NewPlatformTokenRequestHandlerParamsWithTimeout(timeout time.Duration) *PlatformTokenRequestHandlerParams
NewPlatformTokenRequestHandlerParamsWithTimeout creates a new PlatformTokenRequestHandlerParams object with the default values initialized, and the ability to set a timeout on a request
func (*PlatformTokenRequestHandlerParams) SetContext ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerParams) SetContext(ctx context.Context)
SetContext adds the context to the platform token request handler params
func (*PlatformTokenRequestHandlerParams) SetDeviceID ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerParams) SetDeviceID(deviceID *string)
SetDeviceID adds the deviceId to the platform token request handler params
func (*PlatformTokenRequestHandlerParams) SetHTTPClient ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the platform token request handler params
func (*PlatformTokenRequestHandlerParams) SetNamespace ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the platform token request handler params
func (*PlatformTokenRequestHandlerParams) SetPlatformID ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerParams) SetPlatformID(platformID string)
SetPlatformID adds the platformId to the platform token request handler params
func (*PlatformTokenRequestHandlerParams) SetPlatformToken ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerParams) SetPlatformToken(platformToken *string)
SetPlatformToken adds the platformToken to the platform token request handler params
func (*PlatformTokenRequestHandlerParams) SetTimeout ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the platform token request handler params
func (*PlatformTokenRequestHandlerParams) WithContext ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerParams) WithContext(ctx context.Context) *PlatformTokenRequestHandlerParams
WithContext adds the context to the platform token request handler params
func (*PlatformTokenRequestHandlerParams) WithDeviceID ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerParams) WithDeviceID(deviceID *string) *PlatformTokenRequestHandlerParams
WithDeviceID adds the deviceID to the platform token request handler params
func (*PlatformTokenRequestHandlerParams) WithHTTPClient ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerParams) WithHTTPClient(client *http.Client) *PlatformTokenRequestHandlerParams
WithHTTPClient adds the HTTPClient to the platform token request handler params
func (*PlatformTokenRequestHandlerParams) WithNamespace ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerParams) WithNamespace(namespace string) *PlatformTokenRequestHandlerParams
WithNamespace adds the namespace to the platform token request handler params
func (*PlatformTokenRequestHandlerParams) WithPlatformID ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerParams) WithPlatformID(platformID string) *PlatformTokenRequestHandlerParams
WithPlatformID adds the platformID to the platform token request handler params
func (*PlatformTokenRequestHandlerParams) WithPlatformToken ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerParams) WithPlatformToken(platformToken *string) *PlatformTokenRequestHandlerParams
WithPlatformToken adds the platformToken to the platform token request handler params
func (*PlatformTokenRequestHandlerParams) WithTimeout ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerParams) WithTimeout(timeout time.Duration) *PlatformTokenRequestHandlerParams
WithTimeout adds the timeout to the platform token request handler params
func (*PlatformTokenRequestHandlerParams) WriteToRequest ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PlatformTokenRequestHandlerReader ¶ added in v0.2.0
type PlatformTokenRequestHandlerReader struct {
// contains filtered or unexported fields
}
PlatformTokenRequestHandlerReader is a Reader for the PlatformTokenRequestHandler structure.
func (*PlatformTokenRequestHandlerReader) ReadResponse ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PlatformTokenRequestHandlerUnauthorized ¶ added in v0.2.0
type PlatformTokenRequestHandlerUnauthorized struct {
}PlatformTokenRequestHandlerUnauthorized handles this case with default header values.
Client authentication failed
func NewPlatformTokenRequestHandlerUnauthorized ¶ added in v0.2.0
func NewPlatformTokenRequestHandlerUnauthorized() *PlatformTokenRequestHandlerUnauthorized
NewPlatformTokenRequestHandlerUnauthorized creates a PlatformTokenRequestHandlerUnauthorized with default headers values
func (*PlatformTokenRequestHandlerUnauthorized) Error ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerUnauthorized) Error() string
func (*PlatformTokenRequestHandlerUnauthorized) GetPayload ¶ added in v0.2.0
func (o *PlatformTokenRequestHandlerUnauthorized) GetPayload() *iamclientmodels.OauthmodelErrorResponse
type RevokeAUserBadRequest ¶ added in v0.2.0
type RevokeAUserBadRequest struct { }
RevokeAUserBadRequest handles this case with default header values.
Invalid input
func NewRevokeAUserBadRequest ¶ added in v0.2.0
func NewRevokeAUserBadRequest() *RevokeAUserBadRequest
NewRevokeAUserBadRequest creates a RevokeAUserBadRequest with default headers values
func (*RevokeAUserBadRequest) Error ¶ added in v0.2.0
func (o *RevokeAUserBadRequest) Error() string
type RevokeAUserOK ¶ added in v0.2.0
type RevokeAUserOK struct { }
RevokeAUserOK handles this case with default header values.
User revoked or does not exist
func NewRevokeAUserOK ¶ added in v0.2.0
func NewRevokeAUserOK() *RevokeAUserOK
NewRevokeAUserOK creates a RevokeAUserOK with default headers values
func (*RevokeAUserOK) Error ¶ added in v0.2.0
func (o *RevokeAUserOK) Error() string
type RevokeAUserParams ¶ added in v0.2.0
type RevokeAUserParams struct { /*UserID User to be revoked */ UserID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RevokeAUserParams contains all the parameters to send to the API endpoint for the revoke a user operation typically these are written to a http.Request
func NewRevokeAUserParams ¶ added in v0.2.0
func NewRevokeAUserParams() *RevokeAUserParams
NewRevokeAUserParams creates a new RevokeAUserParams object with the default values initialized.
func NewRevokeAUserParamsWithContext ¶ added in v0.2.0
func NewRevokeAUserParamsWithContext(ctx context.Context) *RevokeAUserParams
NewRevokeAUserParamsWithContext creates a new RevokeAUserParams object with the default values initialized, and the ability to set a context for a request
func NewRevokeAUserParamsWithHTTPClient ¶ added in v0.2.0
func NewRevokeAUserParamsWithHTTPClient(client *http.Client) *RevokeAUserParams
NewRevokeAUserParamsWithHTTPClient creates a new RevokeAUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRevokeAUserParamsWithTimeout ¶ added in v0.2.0
func NewRevokeAUserParamsWithTimeout(timeout time.Duration) *RevokeAUserParams
NewRevokeAUserParamsWithTimeout creates a new RevokeAUserParams object with the default values initialized, and the ability to set a timeout on a request
func (*RevokeAUserParams) SetContext ¶ added in v0.2.0
func (o *RevokeAUserParams) SetContext(ctx context.Context)
SetContext adds the context to the revoke a user params
func (*RevokeAUserParams) SetHTTPClient ¶ added in v0.2.0
func (o *RevokeAUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the revoke a user params
func (*RevokeAUserParams) SetTimeout ¶ added in v0.2.0
func (o *RevokeAUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the revoke a user params
func (*RevokeAUserParams) SetUserID ¶ added in v0.2.0
func (o *RevokeAUserParams) SetUserID(userID string)
SetUserID adds the userId to the revoke a user params
func (*RevokeAUserParams) WithContext ¶ added in v0.2.0
func (o *RevokeAUserParams) WithContext(ctx context.Context) *RevokeAUserParams
WithContext adds the context to the revoke a user params
func (*RevokeAUserParams) WithHTTPClient ¶ added in v0.2.0
func (o *RevokeAUserParams) WithHTTPClient(client *http.Client) *RevokeAUserParams
WithHTTPClient adds the HTTPClient to the revoke a user params
func (*RevokeAUserParams) WithTimeout ¶ added in v0.2.0
func (o *RevokeAUserParams) WithTimeout(timeout time.Duration) *RevokeAUserParams
WithTimeout adds the timeout to the revoke a user params
func (*RevokeAUserParams) WithUserID ¶ added in v0.2.0
func (o *RevokeAUserParams) WithUserID(userID string) *RevokeAUserParams
WithUserID adds the userID to the revoke a user params
func (*RevokeAUserParams) WriteToRequest ¶ added in v0.2.0
func (o *RevokeAUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RevokeAUserReader ¶ added in v0.2.0
type RevokeAUserReader struct {
// contains filtered or unexported fields
}
RevokeAUserReader is a Reader for the RevokeAUser structure.
func (*RevokeAUserReader) ReadResponse ¶ added in v0.2.0
func (o *RevokeAUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RevokeAUserUnauthorized ¶ added in v0.2.0
type RevokeAUserUnauthorized struct { }
RevokeAUserUnauthorized handles this case with default header values.
Invalid basic auth header
func NewRevokeAUserUnauthorized ¶ added in v0.2.0
func NewRevokeAUserUnauthorized() *RevokeAUserUnauthorized
NewRevokeAUserUnauthorized creates a RevokeAUserUnauthorized with default headers values
func (*RevokeAUserUnauthorized) Error ¶ added in v0.2.0
func (o *RevokeAUserUnauthorized) Error() string
type RevokeTokenBadRequest ¶ added in v0.2.0
type RevokeTokenBadRequest struct { }
RevokeTokenBadRequest handles this case with default header values.
Invalid input
func NewRevokeTokenBadRequest ¶ added in v0.2.0
func NewRevokeTokenBadRequest() *RevokeTokenBadRequest
NewRevokeTokenBadRequest creates a RevokeTokenBadRequest with default headers values
func (*RevokeTokenBadRequest) Error ¶ added in v0.2.0
func (o *RevokeTokenBadRequest) Error() string
type RevokeTokenOK ¶ added in v0.2.0
type RevokeTokenOK struct { }
RevokeTokenOK handles this case with default header values.
Token revoked or does not exist
func NewRevokeTokenOK ¶ added in v0.2.0
func NewRevokeTokenOK() *RevokeTokenOK
NewRevokeTokenOK creates a RevokeTokenOK with default headers values
func (*RevokeTokenOK) Error ¶ added in v0.2.0
func (o *RevokeTokenOK) Error() string
type RevokeTokenParams ¶ added in v0.2.0
type RevokeTokenParams struct { /*Token Token to be revoked */ Token string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RevokeTokenParams contains all the parameters to send to the API endpoint for the revoke token operation typically these are written to a http.Request
func NewRevokeTokenParams ¶ added in v0.2.0
func NewRevokeTokenParams() *RevokeTokenParams
NewRevokeTokenParams creates a new RevokeTokenParams object with the default values initialized.
func NewRevokeTokenParamsWithContext ¶ added in v0.2.0
func NewRevokeTokenParamsWithContext(ctx context.Context) *RevokeTokenParams
NewRevokeTokenParamsWithContext creates a new RevokeTokenParams object with the default values initialized, and the ability to set a context for a request
func NewRevokeTokenParamsWithHTTPClient ¶ added in v0.2.0
func NewRevokeTokenParamsWithHTTPClient(client *http.Client) *RevokeTokenParams
NewRevokeTokenParamsWithHTTPClient creates a new RevokeTokenParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRevokeTokenParamsWithTimeout ¶ added in v0.2.0
func NewRevokeTokenParamsWithTimeout(timeout time.Duration) *RevokeTokenParams
NewRevokeTokenParamsWithTimeout creates a new RevokeTokenParams object with the default values initialized, and the ability to set a timeout on a request
func (*RevokeTokenParams) SetContext ¶ added in v0.2.0
func (o *RevokeTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the revoke token params
func (*RevokeTokenParams) SetHTTPClient ¶ added in v0.2.0
func (o *RevokeTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the revoke token params
func (*RevokeTokenParams) SetTimeout ¶ added in v0.2.0
func (o *RevokeTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the revoke token params
func (*RevokeTokenParams) SetToken ¶ added in v0.2.0
func (o *RevokeTokenParams) SetToken(token string)
SetToken adds the token to the revoke token params
func (*RevokeTokenParams) WithContext ¶ added in v0.2.0
func (o *RevokeTokenParams) WithContext(ctx context.Context) *RevokeTokenParams
WithContext adds the context to the revoke token params
func (*RevokeTokenParams) WithHTTPClient ¶ added in v0.2.0
func (o *RevokeTokenParams) WithHTTPClient(client *http.Client) *RevokeTokenParams
WithHTTPClient adds the HTTPClient to the revoke token params
func (*RevokeTokenParams) WithTimeout ¶ added in v0.2.0
func (o *RevokeTokenParams) WithTimeout(timeout time.Duration) *RevokeTokenParams
WithTimeout adds the timeout to the revoke token params
func (*RevokeTokenParams) WithToken ¶ added in v0.2.0
func (o *RevokeTokenParams) WithToken(token string) *RevokeTokenParams
WithToken adds the token to the revoke token params
func (*RevokeTokenParams) WriteToRequest ¶ added in v0.2.0
func (o *RevokeTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RevokeTokenReader ¶ added in v0.2.0
type RevokeTokenReader struct {
// contains filtered or unexported fields
}
RevokeTokenReader is a Reader for the RevokeToken structure.
func (*RevokeTokenReader) ReadResponse ¶ added in v0.2.0
func (o *RevokeTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RevokeTokenUnauthorized ¶ added in v0.2.0
type RevokeTokenUnauthorized struct { }
RevokeTokenUnauthorized handles this case with default header values.
Invalid basic auth header
func NewRevokeTokenUnauthorized ¶ added in v0.2.0
func NewRevokeTokenUnauthorized() *RevokeTokenUnauthorized
NewRevokeTokenUnauthorized creates a RevokeTokenUnauthorized with default headers values
func (*RevokeTokenUnauthorized) Error ¶ added in v0.2.0
func (o *RevokeTokenUnauthorized) Error() string
type RevokeUserOK ¶ added in v0.2.0
type RevokeUserOK struct { }
RevokeUserOK handles this case with default header values.
User revoked
func NewRevokeUserOK ¶ added in v0.2.0
func NewRevokeUserOK() *RevokeUserOK
NewRevokeUserOK creates a RevokeUserOK with default headers values
func (*RevokeUserOK) Error ¶ added in v0.2.0
func (o *RevokeUserOK) Error() string
type RevokeUserParams ¶ added in v0.2.0
type RevokeUserParams struct { /*Namespace namespace */ Namespace string /*UserID User to be revoked */ UserID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RevokeUserParams contains all the parameters to send to the API endpoint for the revoke user operation typically these are written to a http.Request
func NewRevokeUserParams ¶ added in v0.2.0
func NewRevokeUserParams() *RevokeUserParams
NewRevokeUserParams creates a new RevokeUserParams object with the default values initialized.
func NewRevokeUserParamsWithContext ¶ added in v0.2.0
func NewRevokeUserParamsWithContext(ctx context.Context) *RevokeUserParams
NewRevokeUserParamsWithContext creates a new RevokeUserParams object with the default values initialized, and the ability to set a context for a request
func NewRevokeUserParamsWithHTTPClient ¶ added in v0.2.0
func NewRevokeUserParamsWithHTTPClient(client *http.Client) *RevokeUserParams
NewRevokeUserParamsWithHTTPClient creates a new RevokeUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRevokeUserParamsWithTimeout ¶ added in v0.2.0
func NewRevokeUserParamsWithTimeout(timeout time.Duration) *RevokeUserParams
NewRevokeUserParamsWithTimeout creates a new RevokeUserParams object with the default values initialized, and the ability to set a timeout on a request
func (*RevokeUserParams) SetContext ¶ added in v0.2.0
func (o *RevokeUserParams) SetContext(ctx context.Context)
SetContext adds the context to the revoke user params
func (*RevokeUserParams) SetHTTPClient ¶ added in v0.2.0
func (o *RevokeUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the revoke user params
func (*RevokeUserParams) SetNamespace ¶ added in v0.2.0
func (o *RevokeUserParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the revoke user params
func (*RevokeUserParams) SetTimeout ¶ added in v0.2.0
func (o *RevokeUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the revoke user params
func (*RevokeUserParams) SetUserID ¶ added in v0.2.0
func (o *RevokeUserParams) SetUserID(userID string)
SetUserID adds the userId to the revoke user params
func (*RevokeUserParams) WithContext ¶ added in v0.2.0
func (o *RevokeUserParams) WithContext(ctx context.Context) *RevokeUserParams
WithContext adds the context to the revoke user params
func (*RevokeUserParams) WithHTTPClient ¶ added in v0.2.0
func (o *RevokeUserParams) WithHTTPClient(client *http.Client) *RevokeUserParams
WithHTTPClient adds the HTTPClient to the revoke user params
func (*RevokeUserParams) WithNamespace ¶ added in v0.2.0
func (o *RevokeUserParams) WithNamespace(namespace string) *RevokeUserParams
WithNamespace adds the namespace to the revoke user params
func (*RevokeUserParams) WithTimeout ¶ added in v0.2.0
func (o *RevokeUserParams) WithTimeout(timeout time.Duration) *RevokeUserParams
WithTimeout adds the timeout to the revoke user params
func (*RevokeUserParams) WithUserID ¶ added in v0.2.0
func (o *RevokeUserParams) WithUserID(userID string) *RevokeUserParams
WithUserID adds the userID to the revoke user params
func (*RevokeUserParams) WriteToRequest ¶ added in v0.2.0
func (o *RevokeUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RevokeUserReader ¶ added in v0.2.0
type RevokeUserReader struct {
// contains filtered or unexported fields
}
RevokeUserReader is a Reader for the RevokeUser structure.
func (*RevokeUserReader) ReadResponse ¶ added in v0.2.0
func (o *RevokeUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RevokeUserUnauthorized ¶ added in v0.2.0
type RevokeUserUnauthorized struct { }
RevokeUserUnauthorized handles this case with default header values.
Invalid basic auth header
func NewRevokeUserUnauthorized ¶ added in v0.2.0
func NewRevokeUserUnauthorized() *RevokeUserUnauthorized
NewRevokeUserUnauthorized creates a RevokeUserUnauthorized with default headers values
func (*RevokeUserUnauthorized) Error ¶ added in v0.2.0
func (o *RevokeUserUnauthorized) Error() string
type TokenGrantBadRequest ¶
type TokenGrantBadRequest struct {
Payload *iamclientmodels.OauthmodelErrorResponse
}
TokenGrantBadRequest handles this case with default header values.
General request error
func NewTokenGrantBadRequest ¶
func NewTokenGrantBadRequest() *TokenGrantBadRequest
NewTokenGrantBadRequest creates a TokenGrantBadRequest with default headers values
func (*TokenGrantBadRequest) Error ¶
func (o *TokenGrantBadRequest) Error() string
func (*TokenGrantBadRequest) GetPayload ¶
func (o *TokenGrantBadRequest) GetPayload() *iamclientmodels.OauthmodelErrorResponse
type TokenGrantOK ¶
type TokenGrantOK struct {
Payload *iamclientmodels.OauthmodelTokenResponse
}
TokenGrantOK handles this case with default header values.
Token returned
func NewTokenGrantOK ¶
func NewTokenGrantOK() *TokenGrantOK
NewTokenGrantOK creates a TokenGrantOK with default headers values
func (*TokenGrantOK) Error ¶
func (o *TokenGrantOK) Error() string
func (*TokenGrantOK) GetPayload ¶
func (o *TokenGrantOK) GetPayload() *iamclientmodels.OauthmodelTokenResponse
type TokenGrantParams ¶
type TokenGrantParams struct { /*DeviceID DeviceID (Used on grant type 'password' to track login history) ex. 90252d14544846d79f367148e3f9a3d9 */ DeviceID *string /*Code Code (used with grant type 'authorization_code' */ Code *string /*ExtendExp Extend expiration date of refresh token. Only available for grant type 'password' */ ExtendExp *bool /*GrantType Grant Type */ GrantType string /*Namespace Delegated namespace (used with grant type 'password' to do token grant on other namespace) */ Namespace *string /*Password Password (used with grant type 'password' */ Password *string /*RedirectURI Redirect URI (used with grant type 'authorization_code' */ RedirectURI *string /*RefreshToken Refresh Token (used with grant type 'refresh_token' */ RefreshToken *string /*Username User Name (used with grant type 'password' */ Username *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TokenGrantParams contains all the parameters to send to the API endpoint for the token grant operation typically these are written to a http.Request
func NewTokenGrantParams ¶
func NewTokenGrantParams() *TokenGrantParams
NewTokenGrantParams creates a new TokenGrantParams object with the default values initialized.
func NewTokenGrantParamsWithContext ¶
func NewTokenGrantParamsWithContext(ctx context.Context) *TokenGrantParams
NewTokenGrantParamsWithContext creates a new TokenGrantParams object with the default values initialized, and the ability to set a context for a request
func NewTokenGrantParamsWithHTTPClient ¶
func NewTokenGrantParamsWithHTTPClient(client *http.Client) *TokenGrantParams
NewTokenGrantParamsWithHTTPClient creates a new TokenGrantParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewTokenGrantParamsWithTimeout ¶
func NewTokenGrantParamsWithTimeout(timeout time.Duration) *TokenGrantParams
NewTokenGrantParamsWithTimeout creates a new TokenGrantParams object with the default values initialized, and the ability to set a timeout on a request
func (*TokenGrantParams) SetCode ¶
func (o *TokenGrantParams) SetCode(code *string)
SetCode adds the code to the token grant params
func (*TokenGrantParams) SetContext ¶
func (o *TokenGrantParams) SetContext(ctx context.Context)
SetContext adds the context to the token grant params
func (*TokenGrantParams) SetDeviceID ¶
func (o *TokenGrantParams) SetDeviceID(deviceID *string)
SetDeviceID adds the deviceId to the token grant params
func (*TokenGrantParams) SetExtendExp ¶
func (o *TokenGrantParams) SetExtendExp(extendExp *bool)
SetExtendExp adds the extendExp to the token grant params
func (*TokenGrantParams) SetGrantType ¶
func (o *TokenGrantParams) SetGrantType(grantType string)
SetGrantType adds the grantType to the token grant params
func (*TokenGrantParams) SetHTTPClient ¶
func (o *TokenGrantParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the token grant params
func (*TokenGrantParams) SetNamespace ¶
func (o *TokenGrantParams) SetNamespace(namespace *string)
SetNamespace adds the namespace to the token grant params
func (*TokenGrantParams) SetPassword ¶
func (o *TokenGrantParams) SetPassword(password *string)
SetPassword adds the password to the token grant params
func (*TokenGrantParams) SetRedirectURI ¶
func (o *TokenGrantParams) SetRedirectURI(redirectURI *string)
SetRedirectURI adds the redirectUri to the token grant params
func (*TokenGrantParams) SetRefreshToken ¶
func (o *TokenGrantParams) SetRefreshToken(refreshToken *string)
SetRefreshToken adds the refreshToken to the token grant params
func (*TokenGrantParams) SetTimeout ¶
func (o *TokenGrantParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the token grant params
func (*TokenGrantParams) SetUsername ¶
func (o *TokenGrantParams) SetUsername(username *string)
SetUsername adds the username to the token grant params
func (*TokenGrantParams) WithCode ¶
func (o *TokenGrantParams) WithCode(code *string) *TokenGrantParams
WithCode adds the code to the token grant params
func (*TokenGrantParams) WithContext ¶
func (o *TokenGrantParams) WithContext(ctx context.Context) *TokenGrantParams
WithContext adds the context to the token grant params
func (*TokenGrantParams) WithDeviceID ¶
func (o *TokenGrantParams) WithDeviceID(deviceID *string) *TokenGrantParams
WithDeviceID adds the deviceID to the token grant params
func (*TokenGrantParams) WithExtendExp ¶
func (o *TokenGrantParams) WithExtendExp(extendExp *bool) *TokenGrantParams
WithExtendExp adds the extendExp to the token grant params
func (*TokenGrantParams) WithGrantType ¶
func (o *TokenGrantParams) WithGrantType(grantType string) *TokenGrantParams
WithGrantType adds the grantType to the token grant params
func (*TokenGrantParams) WithHTTPClient ¶
func (o *TokenGrantParams) WithHTTPClient(client *http.Client) *TokenGrantParams
WithHTTPClient adds the HTTPClient to the token grant params
func (*TokenGrantParams) WithNamespace ¶
func (o *TokenGrantParams) WithNamespace(namespace *string) *TokenGrantParams
WithNamespace adds the namespace to the token grant params
func (*TokenGrantParams) WithPassword ¶
func (o *TokenGrantParams) WithPassword(password *string) *TokenGrantParams
WithPassword adds the password to the token grant params
func (*TokenGrantParams) WithRedirectURI ¶
func (o *TokenGrantParams) WithRedirectURI(redirectURI *string) *TokenGrantParams
WithRedirectURI adds the redirectURI to the token grant params
func (*TokenGrantParams) WithRefreshToken ¶
func (o *TokenGrantParams) WithRefreshToken(refreshToken *string) *TokenGrantParams
WithRefreshToken adds the refreshToken to the token grant params
func (*TokenGrantParams) WithTimeout ¶
func (o *TokenGrantParams) WithTimeout(timeout time.Duration) *TokenGrantParams
WithTimeout adds the timeout to the token grant params
func (*TokenGrantParams) WithUsername ¶
func (o *TokenGrantParams) WithUsername(username *string) *TokenGrantParams
WithUsername adds the username to the token grant params
func (*TokenGrantParams) WriteToRequest ¶
func (o *TokenGrantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TokenGrantReader ¶
type TokenGrantReader struct {
// contains filtered or unexported fields
}
TokenGrantReader is a Reader for the TokenGrant structure.
func (*TokenGrantReader) ReadResponse ¶
func (o *TokenGrantReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type TokenGrantUnauthorized ¶
type TokenGrantUnauthorized struct {
}TokenGrantUnauthorized handles this case with default header values.
Client authentication failed
func NewTokenGrantUnauthorized ¶
func NewTokenGrantUnauthorized() *TokenGrantUnauthorized
NewTokenGrantUnauthorized creates a TokenGrantUnauthorized with default headers values
func (*TokenGrantUnauthorized) Error ¶
func (o *TokenGrantUnauthorized) Error() string
func (*TokenGrantUnauthorized) GetPayload ¶
func (o *TokenGrantUnauthorized) GetPayload() *iamclientmodels.OauthmodelErrorResponse
type VerifyTokenBadRequest ¶ added in v0.2.0
type VerifyTokenBadRequest struct { }
VerifyTokenBadRequest handles this case with default header values.
Access Token not exist or expired
func NewVerifyTokenBadRequest ¶ added in v0.2.0
func NewVerifyTokenBadRequest() *VerifyTokenBadRequest
NewVerifyTokenBadRequest creates a VerifyTokenBadRequest with default headers values
func (*VerifyTokenBadRequest) Error ¶ added in v0.2.0
func (o *VerifyTokenBadRequest) Error() string
type VerifyTokenOK ¶ added in v0.2.0
type VerifyTokenOK struct {
Payload *iamclientmodels.OauthmodelTokenResponse
}
VerifyTokenOK handles this case with default header values.
Access Token verified
func NewVerifyTokenOK ¶ added in v0.2.0
func NewVerifyTokenOK() *VerifyTokenOK
NewVerifyTokenOK creates a VerifyTokenOK with default headers values
func (*VerifyTokenOK) Error ¶ added in v0.2.0
func (o *VerifyTokenOK) Error() string
func (*VerifyTokenOK) GetPayload ¶ added in v0.2.0
func (o *VerifyTokenOK) GetPayload() *iamclientmodels.OauthmodelTokenResponse
type VerifyTokenParams ¶ added in v0.2.0
type VerifyTokenParams struct { /*Token Token to be verified */ Token string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
VerifyTokenParams contains all the parameters to send to the API endpoint for the verify token operation typically these are written to a http.Request
func NewVerifyTokenParams ¶ added in v0.2.0
func NewVerifyTokenParams() *VerifyTokenParams
NewVerifyTokenParams creates a new VerifyTokenParams object with the default values initialized.
func NewVerifyTokenParamsWithContext ¶ added in v0.2.0
func NewVerifyTokenParamsWithContext(ctx context.Context) *VerifyTokenParams
NewVerifyTokenParamsWithContext creates a new VerifyTokenParams object with the default values initialized, and the ability to set a context for a request
func NewVerifyTokenParamsWithHTTPClient ¶ added in v0.2.0
func NewVerifyTokenParamsWithHTTPClient(client *http.Client) *VerifyTokenParams
NewVerifyTokenParamsWithHTTPClient creates a new VerifyTokenParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewVerifyTokenParamsWithTimeout ¶ added in v0.2.0
func NewVerifyTokenParamsWithTimeout(timeout time.Duration) *VerifyTokenParams
NewVerifyTokenParamsWithTimeout creates a new VerifyTokenParams object with the default values initialized, and the ability to set a timeout on a request
func (*VerifyTokenParams) SetContext ¶ added in v0.2.0
func (o *VerifyTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the verify token params
func (*VerifyTokenParams) SetHTTPClient ¶ added in v0.2.0
func (o *VerifyTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the verify token params
func (*VerifyTokenParams) SetTimeout ¶ added in v0.2.0
func (o *VerifyTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the verify token params
func (*VerifyTokenParams) SetToken ¶ added in v0.2.0
func (o *VerifyTokenParams) SetToken(token string)
SetToken adds the token to the verify token params
func (*VerifyTokenParams) WithContext ¶ added in v0.2.0
func (o *VerifyTokenParams) WithContext(ctx context.Context) *VerifyTokenParams
WithContext adds the context to the verify token params
func (*VerifyTokenParams) WithHTTPClient ¶ added in v0.2.0
func (o *VerifyTokenParams) WithHTTPClient(client *http.Client) *VerifyTokenParams
WithHTTPClient adds the HTTPClient to the verify token params
func (*VerifyTokenParams) WithTimeout ¶ added in v0.2.0
func (o *VerifyTokenParams) WithTimeout(timeout time.Duration) *VerifyTokenParams
WithTimeout adds the timeout to the verify token params
func (*VerifyTokenParams) WithToken ¶ added in v0.2.0
func (o *VerifyTokenParams) WithToken(token string) *VerifyTokenParams
WithToken adds the token to the verify token params
func (*VerifyTokenParams) WriteToRequest ¶ added in v0.2.0
func (o *VerifyTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type VerifyTokenReader ¶ added in v0.2.0
type VerifyTokenReader struct {
// contains filtered or unexported fields
}
VerifyTokenReader is a Reader for the VerifyToken structure.
func (*VerifyTokenReader) ReadResponse ¶ added in v0.2.0
func (o *VerifyTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- authorization_parameters.go
- authorization_responses.go
- get_j_w_k_s_parameters.go
- get_j_w_k_s_responses.go
- get_revocation_list_parameters.go
- get_revocation_list_responses.go
- o_auth_client.go
- platform_token_request_handler_parameters.go
- platform_token_request_handler_responses.go
- revoke_a_user_parameters.go
- revoke_a_user_responses.go
- revoke_token_parameters.go
- revoke_token_responses.go
- revoke_user_parameters.go
- revoke_user_responses.go
- token_grant_parameters.go
- token_grant_responses.go
- verify_token_parameters.go
- verify_token_responses.go