# google-auth 2.62.0 (Apache-2.0), harvested by tools/harvest_corpus.py
=== input
Interface for credentials whose scopes can be replaced while copying.

    OAuth 2.0-based credentials allow limiting access using scopes as described
    in `RFC6749 Section 3.3`_.
    If a credential class implements this interface then the credentials either
    use scopes in their implementation.

    Some credentials require scopes in order to obtain a token. You can check
    if scoping is necessary with :attr:`requires_scopes`::

        if credentials.requires_scopes:
            # Scoping is required.
            credentials = credentials.create_scoped(['one', 'two'])

    Credentials that require scopes must either be constructed with scopes::

        credentials = SomeScopedCredentials(scopes=['one', 'two'])

    Or must copy an existing instance using :meth:`with_scopes`::

        scoped_credentials = credentials.with_scopes(scopes=['one', 'two'])

    Some credentials have scopes but do not allow or require scopes to be set,
    these credentials can be used as-is.

    .. _RFC6749 Section 3.3: https://tools.ietf.org/html/rfc6749#section-3.3
    
=== parse google
short_description: 'Interface for credentials whose scopes can be replaced while copying.'
long_description: |
  OAuth 2.0-based credentials allow limiting access using scopes as described
  in `RFC6749 Section 3.3`_.
  If a credential class implements this interface then the credentials either
  use scopes in their implementation.
  
  Some credentials require scopes in order to obtain a token. You can check
  if scoping is necessary with :attr:`requires_scopes`::
  
      if credentials.requires_scopes:
          # Scoping is required.
          credentials = credentials.create_scoped(['one', 'two'])
  
  Credentials that require scopes must either be constructed with scopes::
  
      credentials = SomeScopedCredentials(scopes=['one', 'two'])
  
  Or must copy an existing instance using :meth:`with_scopes`::
  
      scoped_credentials = credentials.with_scopes(scopes=['one', 'two'])
  
  Some credentials have scopes but do not allow or require scopes to be set,
  these credentials can be used as-is.
  
  .. _RFC6749 Section 3.3: https://tools.ietf.org/html/rfc6749#section-3.3
blank_after_short_description: True
blank_after_long_description: False
style: google
=== detect
rest
=== compose google
Interface for credentials whose scopes can be replaced while copying.

OAuth 2.0-based credentials allow limiting access using scopes as described
in `RFC6749 Section 3.3`_.
If a credential class implements this interface then the credentials either
use scopes in their implementation.

Some credentials require scopes in order to obtain a token. You can check
if scoping is necessary with :attr:`requires_scopes`::

    if credentials.requires_scopes:
        # Scoping is required.
        credentials = credentials.create_scoped(['one', 'two'])

Credentials that require scopes must either be constructed with scopes::

    credentials = SomeScopedCredentials(scopes=['one', 'two'])

Or must copy an existing instance using :meth:`with_scopes`::

    scoped_credentials = credentials.with_scopes(scopes=['one', 'two'])

Some credentials have scopes but do not allow or require scopes to be set,
these credentials can be used as-is.

.. _RFC6749 Section 3.3: https://tools.ietf.org/html/rfc6749#section-3.3
