StoredAuthorizationRequestError (authorization_server/stored_requests.py)

django-oauth-toolkit · oauth2_provider/authorization_server/stored_requests.py · python · BSD-2-Clause
auth, Auth / Identity

Handles storage and consumption of OAuth2 authorization requests.

# Source: https://github.com/django-oauth/django-oauth-toolkit | License: BSD-2-Clause | Copyright 2013, Massimiliano Pippi, Federico Frenguelli and contributors
# Provided via justclaw.it.com; keep this notice with the code.
"""Stored authorization requests — validated requests referenced by a single-use ``request_uri``.

The authorization server keeps an authorization request on the server and gives
out a reference to it, a ``request_uri`` in the ``urn:ietf:params:oauth:request_uri:``
namespace (:rfc:`9126#section-2.2`). The authorization endpoint is then called with
only ``client_id`` and that ``request_uri``, so the request itself never enters the
browser URL. Each reference is bound to one client and can be used only once
(:rfc:`9126#section-4`).

Contract for producers
--------------

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key