File: rfc6749.rst

package info (click to toggle)
python-authlib 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,016 kB
  • sloc: python: 26,998; makefile: 53; sh: 14
file content (102 lines) | stat: -rw-r--r-- 2,048 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
.. _specs/rfc6749:

RFC6749: The OAuth 2.0 Authorization Framework
==============================================

.. meta::
    :description: API references of RFC6749 in Python implementation.
        Learn how to create an OAuth 2.0 provider in Python.

This section contains the generic implementation of RFC6749_. You should
read :ref:`intro_oauth2` at first. Here are some tips:

1. Have a better understanding of :ref:`OAuth 2.0 <intro_oauth2>`
2. How to use :ref:`oauth_2_session` for Requests
3. How to implement :ref:`flask_client`
4. How to implement :ref:`flask_oauth2_server`
5. How to implement :ref:`django_client`
6. How to implement :ref:`django_oauth2_server`

.. _RFC6749: https://tools.ietf.org/html/rfc6749

API References
--------------

Here are the API references for developers. For framework level interfaces,
check:

Servers
~~~~~~~

.. module:: authlib.oauth2.rfc6749

.. autoclass:: AuthorizationServer
    :members:

.. autoclass:: ResourceProtector
    :members:

Client Model
~~~~~~~~~~~~

.. autoclass:: ClientMixin
    :members:

.. _specs/rfc6949-errors:

Token Model
~~~~~~~~~~~

.. autoclass:: AuthorizationCodeMixin
    :members:

.. autoclass:: TokenMixin
    :members:

Errors
~~~~~~

.. autoclass:: OAuth2Error
    :members:

.. autoclass:: InsecureTransportError
    :members:

.. autoclass:: InvalidRequestError

.. autoclass:: InvalidClientError

.. autoclass:: InvalidGrantError

.. autoclass:: UnauthorizedClientError

.. autoclass:: UnsupportedGrantTypeError

.. autoclass:: InvalidScopeError

.. autoclass:: AccessDeniedError

Grant Types
~~~~~~~~~~~

.. module:: authlib.oauth2.rfc6749.grants

.. autoclass:: AuthorizationCodeGrant
    :member-order: bysource
    :members:

.. autoclass:: ImplicitGrant
    :member-order: bysource
    :members:

.. autoclass:: ResourceOwnerPasswordCredentialsGrant
    :member-order: bysource
    :members:

.. autoclass:: ClientCredentialsGrant
    :member-order: bysource
    :members:

.. autoclass:: RefreshTokenGrant
    :member-order: bysource
    :members: