<spanid="com-vmware-oauth2-package"></span><h1>com.vmware.oauth2 package<aclass="headerlink"href="#module-com.vmware.oauth2"title="Permalink to this headline">¶</a></h1>
<divclass="section"id="submodules">
<h2>Submodules<aclass="headerlink"href="#submodules"title="Permalink to this headline">¶</a></h2>
<spanid="com-vmware-oauth2-errors-client-module"></span><h2>com.vmware.oauth2.errors_client module<aclass="headerlink"href="#module-com.vmware.oauth2.errors_client"title="Permalink to this headline">¶</a></h2>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.oauth2.errors_client</span></code> 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.</p>
<dlclass="py exception">
<dtid="com.vmware.oauth2.errors_client.Error">
<emclass="property"><spanclass="pre">exception</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.oauth2.errors_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Error</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">error</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">error_description</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">error_uri</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.oauth2.errors_client.Error"title="Permalink to this definition">¶</a></dt>
<p>The OAuth2 <codeclass="docutils literal notranslate"><spanclass="pre">Error</span></code> describes the attributes common to standard OAuth 2.0
exceptions.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>error</strong> (<aclass="reference internal"href="#com.vmware.oauth2.errors_client.Error.Type"title="com.vmware.oauth2.errors_client.Error.Type"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Error.Type</span></code></a>) – Discriminator field to help API consumers identify the structure
type.</p></li>
<li><p><strong>error_description</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – 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.</p></li>
<li><p><strong>error_uri</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – A URI identifying a human-readable web page with information about
the error, used to provide the client developer with additional
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Type</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.oauth2.errors_client.Error.Type"title="Permalink to this definition">¶</a></dt>
<p>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 <aclass="reference internal"href="enumeration.html#enumeration-description"><spanclass="std std-ref">enumerated
type description page</span></a>.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>string</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – String value for the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Type</span></code> instance.</p>
<codeclass="sig-name descname"><spanclass="pre">invalid_grant</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='invalid_grant')</span></em><aclass="headerlink"href="#com.vmware.oauth2.errors_client.Error.Type.invalid_grant"title="Permalink to this definition">¶</a></dt>
<dd><p>Discriminator for the <aclass="reference internal"href="#com.vmware.oauth2.errors_client.InvalidGrant"title="com.vmware.oauth2.errors_client.InvalidGrant"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">InvalidGrant</span></code></a> type.</p>
<codeclass="sig-name descname"><spanclass="pre">invalid_request</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='invalid_request')</span></em><aclass="headerlink"href="#com.vmware.oauth2.errors_client.Error.Type.invalid_request"title="Permalink to this definition">¶</a></dt>
<dd><p>Discriminator for the <aclass="reference internal"href="#com.vmware.oauth2.errors_client.InvalidRequest"title="com.vmware.oauth2.errors_client.InvalidRequest"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">InvalidRequest</span></code></a> type.</p>
<codeclass="sig-name descname"><spanclass="pre">invalid_scope</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='invalid_scope')</span></em><aclass="headerlink"href="#com.vmware.oauth2.errors_client.Error.Type.invalid_scope"title="Permalink to this definition">¶</a></dt>
<dd><p>Discriminator for the <aclass="reference internal"href="#com.vmware.oauth2.errors_client.InvalidScope"title="com.vmware.oauth2.errors_client.InvalidScope"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">InvalidScope</span></code></a> type.</p>
<emclass="property"><spanclass="pre">exception</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.oauth2.errors_client.</span></code><codeclass="sig-name descname"><spanclass="pre">InvalidGrant</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">error</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'INVALID_GRANT'</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">error_description</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">error_uri</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.oauth2.errors_client.InvalidGrant"title="Permalink to this definition">¶</a></dt>
<p>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.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>error</strong> (<aclass="reference internal"href="#com.vmware.oauth2.errors_client.Error.Type"title="com.vmware.oauth2.errors_client.Error.Type"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Error.Type</span></code></a>) – Discriminator field to help API consumers identify the structure
type.</p></li>
<li><p><strong>error_description</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – 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.</p></li>
<li><p><strong>error_uri</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – A URI identifying a human-readable web page with information about
the error, used to provide the client developer with additional
<emclass="property"><spanclass="pre">exception</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.oauth2.errors_client.</span></code><codeclass="sig-name descname"><spanclass="pre">InvalidRequest</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">error</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'INVALID_REQUEST'</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">error_description</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">error_uri</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.oauth2.errors_client.InvalidRequest"title="Permalink to this definition">¶</a></dt>
<p>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</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>error</strong> (<aclass="reference internal"href="#com.vmware.oauth2.errors_client.Error.Type"title="com.vmware.oauth2.errors_client.Error.Type"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Error.Type</span></code></a>) – Discriminator field to help API consumers identify the structure
type.</p></li>
<li><p><strong>error_description</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – 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.</p></li>
<li><p><strong>error_uri</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – A URI identifying a human-readable web page with information about
the error, used to provide the client developer with additional
<emclass="property"><spanclass="pre">exception</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.oauth2.errors_client.</span></code><codeclass="sig-name descname"><spanclass="pre">InvalidScope</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">error</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'INVALID_SCOPE'</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">error_description</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">error_uri</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.oauth2.errors_client.InvalidScope"title="Permalink to this definition">¶</a></dt>
<p>Indicates that the requested scope is invalid, unknown, malformed, or
exceeds the scope granted by the resource owner.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>error</strong> (<aclass="reference internal"href="#com.vmware.oauth2.errors_client.Error.Type"title="com.vmware.oauth2.errors_client.Error.Type"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Error.Type</span></code></a>) – Discriminator field to help API consumers identify the structure
type.</p></li>
<li><p><strong>error_description</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – 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.</p></li>
<li><p><strong>error_uri</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – A URI identifying a human-readable web page with information about
the error, used to provide the client developer with additional
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.oauth2.errors_client.</span></code><codeclass="sig-name descname"><spanclass="pre">StubFactory</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">stub_config</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.oauth2.errors_client.StubFactory"title="Permalink to this definition">¶</a></dt>