File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ The steps below outline how to use the Resource Owner Client Credentials Grant T
175
175
.. code-block :: pycon
176
176
177
177
>>> from oauthlib.oauth2 import BackendApplicationClient
178
+ >>> from requests_oauthlib import OAuth2Session
178
179
>>> client = BackendApplicationClient(client_id=client_id)
179
180
>>> oauth = OAuth2Session(client=client)
180
181
>>> token = oauth.fetch_token(token_url='https://provider.com/oauth2/token', client_id=client_id,
@@ -185,6 +186,7 @@ The steps below outline how to use the Resource Owner Client Credentials Grant T
185
186
.. code-block :: pycon
186
187
187
188
>>> from oauthlib.oauth2 import BackendApplicationClient
189
+ >>> from requests_oauthlib import OAuth2Session
188
190
>>> from requests.auth import HTTPBasicAuth
189
191
>>> auth = HTTPBasicAuth(client_id, client_secret)
190
192
>>> client = BackendApplicationClient(client_id=client_id)
You can’t perform that action at this time.
0 commit comments