@@ -44,7 +44,7 @@ Configuration
44
44
-------------
45
45
46
46
Authlib Flask OAuth registry can load the configuration from Flask ``app.config ``
47
- automatically. Every key value pair in ``.register `` can be omitted. They can be
47
+ automatically. Every key- value pair in ``.register `` can be omitted. They can be
48
48
configured in your Flask App configuration. Config keys are formatted as
49
49
``{name}_{key} `` in uppercase, e.g.
50
50
@@ -71,7 +71,7 @@ Here is a full list of the configuration keys:
71
71
- ``{name}_REQUEST_TOKEN_PARAMS ``: Extra parameters for Request Token endpoint
72
72
- ``{name}_ACCESS_TOKEN_URL ``: Access Token endpoint for OAuth 1 and OAuth 2
73
73
- ``{name}_ACCESS_TOKEN_PARAMS ``: Extra parameters for Access Token endpoint
74
- - ``{name}_AUTHORIZE_URL ``: Endpoint for user authorization of OAuth 1 ro OAuth 2
74
+ - ``{name}_AUTHORIZE_URL ``: Endpoint for user authorization of OAuth 1 or OAuth 2
75
75
- ``{name}_AUTHORIZE_PARAMS ``: Extra parameters for Authorization Endpoint.
76
76
- ``{name}_API_BASE_URL ``: A base URL endpoint to make requests simple
77
77
- ``{name}_CLIENT_KWARGS ``: Extra keyword arguments for OAuth1Session or OAuth2Session
@@ -83,8 +83,8 @@ your Flask application configuration.
83
83
Using Cache for Temporary Credential
84
84
------------------------------------
85
85
86
- By default, Flask OAuth registry will use Flask session to store OAuth 1.0 temporary
87
- credential (request token). However in this way, there are chances your temporary
86
+ By default, the Flask OAuth registry will use Flask session to store OAuth 1.0 temporary
87
+ credential (request token). However, in this way, there are chances your temporary
88
88
credential will be exposed.
89
89
90
90
Our ``OAuth `` registry provides a simple way to store temporary credentials in a cache
@@ -128,7 +128,7 @@ Accessing OAuth Resources
128
128
-------------------------
129
129
130
130
There is no ``request `` in accessing OAuth resources either. Just like above,
131
- we don't need to pass ``request `` parameter, everything is handled by Authlib
131
+ we don't need to pass the ``request `` parameter, everything is handled by Authlib
132
132
automatically::
133
133
134
134
from flask import render_template
@@ -156,7 +156,7 @@ In this case, our ``fetch_token`` could look like::
156
156
)
157
157
return token.to_token()
158
158
159
- # initialize OAuth registry with this fetch_token function
159
+ # initialize the OAuth registry with this fetch_token function
160
160
oauth = OAuth(fetch_token=fetch_token)
161
161
162
162
You don't have to pass ``token ``, you don't have to pass ``request ``. That
@@ -169,10 +169,10 @@ Auto Update Token via Signal
169
169
170
170
The signal is added since v0.13
171
171
172
- Instead of define a ``update_token `` method and passing it into OAuth registry,
173
- it is also possible to use signal to listen for token updating.
172
+ Instead of defining an ``update_token `` method and passing it into the OAuth registry,
173
+ it is also possible to use a signal to listen for token updating.
174
174
175
- Before using signal, make sure you have installed **blinker ** library::
175
+ Before using the signal, make sure you have installed the **blinker ** library::
176
176
177
177
$ pip install blinker
178
178
@@ -200,7 +200,7 @@ Flask OpenID Connect Client
200
200
---------------------------
201
201
202
202
An OpenID Connect client is no different than a normal OAuth 2.0 client. When
203
- register with ``openid `` scope, the built-in Flask OAuth client will handle everything
203
+ registered with ``openid `` scope, the built-in Flask OAuth client will handle everything
204
204
automatically::
205
205
206
206
oauth.register(
0 commit comments