com.vmware.oauth2 package

Submodules

com.vmware.oauth2.errors_client module

The com.vmware.oauth2.errors_client module provides the OAuth 2.0 exceptions that can be included in the list of exceptions in the specification of OAuth 2.0 methods to indicate that the method might report those exceptions.

exception com.vmware.oauth2.errors_client.Error(error=None, error_description=None, error_uri=None)

Bases: vmware.vapi.bindings.error.VapiError

The OAuth2 Error describes the attributes common to standard OAuth 2.0 exceptions.

Tip

The arguments are used to initialize data attributes with the same names.

Parameters
  • error (Error.Type) – Discriminator field to help API consumers identify the structure type.

  • error_description (str or None) – Human-readable ASCII text providing additional information, used to assist the client developer in understanding the error that occurred. Values for the “error_description” parameter MUST NOT include characters outside the set %x20-21 / %x23-5B / %x5D-7E. if no additional information is available.

  • error_uri (str or None) – A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error. if no such web-page is available.

class Type(string)

Bases: vmware.vapi.bindings.enum.Enum

Enumeration of OAuth 2.0 exceptions.

Note

This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.

Parameters

string (str) – String value for the Type instance.

invalid_grant = Type(string='invalid_grant')

Discriminator for the InvalidGrant type.

invalid_request = Type(string='invalid_request')

Discriminator for the InvalidRequest type.

invalid_scope = Type(string='invalid_scope')

Discriminator for the InvalidScope type.

exception com.vmware.oauth2.errors_client.InvalidGrant(error='INVALID_GRANT', error_description=None, error_uri=None)

Bases: com.vmware.oauth2.errors_client.Error

Indicates that the provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.

Tip

The arguments are used to initialize data attributes with the same names.

Parameters
  • error (Error.Type) – Discriminator field to help API consumers identify the structure type.

  • error_description (str or None) – Human-readable ASCII text providing additional information, used to assist the client developer in understanding the error that occurred. Values for the “error_description” parameter MUST NOT include characters outside the set %x20-21 / %x23-5B / %x5D-7E. if no additional information is available.

  • error_uri (str or None) – A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error. if no such web-page is available.

exception com.vmware.oauth2.errors_client.InvalidRequest(error='INVALID_REQUEST', error_description=None, error_uri=None)

Bases: com.vmware.oauth2.errors_client.Error

Indicates that the request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed

Tip

The arguments are used to initialize data attributes with the same names.

Parameters
  • error (Error.Type) – Discriminator field to help API consumers identify the structure type.

  • error_description (str or None) – Human-readable ASCII text providing additional information, used to assist the client developer in understanding the error that occurred. Values for the “error_description” parameter MUST NOT include characters outside the set %x20-21 / %x23-5B / %x5D-7E. if no additional information is available.

  • error_uri (str or None) – A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error. if no such web-page is available.

exception com.vmware.oauth2.errors_client.InvalidScope(error='INVALID_SCOPE', error_description=None, error_uri=None)

Bases: com.vmware.oauth2.errors_client.Error

Indicates that the requested scope is invalid, unknown, malformed, or exceeds the scope granted by the resource owner.

Tip

The arguments are used to initialize data attributes with the same names.

Parameters
  • error (Error.Type) – Discriminator field to help API consumers identify the structure type.

  • error_description (str or None) – Human-readable ASCII text providing additional information, used to assist the client developer in understanding the error that occurred. Values for the “error_description” parameter MUST NOT include characters outside the set %x20-21 / %x23-5B / %x5D-7E. if no additional information is available.

  • error_uri (str or None) – A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error. if no such web-page is available.

class com.vmware.oauth2.errors_client.StubFactory(stub_config)

Bases: vmware.vapi.bindings.stub.StubFactoryBase

Initialize StubFactoryBase

Parameters

stub_config (vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance