Implements the OAuth 2.0 Resource Owner Password Credentials grant type, allowing developers to exchange user credentials for access tokens.
# Source: https://github.com/oauthlib/oauthlib | License: BSD-3-Clause | Copyright The OAuthlib Community
# Provided via justclaw.it.com; keep this notice with the code.
"""
oauthlib.oauth2.rfc6749.grant_types
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
import json
import logging
from .. import errors
from .base import GrantTypeBase
from oauthlib.common import log_safe
log = logging.getLogger(__name__)
class ResourceOwnerPasswordCredentialsGrant(GrantTypeBase):
"""`Resource Owner Password Credentials Grant`_
The resource owner password credentials grant type is suitable in
cases where the resource owner has a trust relationship with the
client, such as the device operating system or a highly privileged
application. The authorization server should take special care w
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key