Skip to content

Commit 39a291b

Browse files
bfolleksingingwolfboy
authored andcommitted
Add missing import in Backend Application Flow
1 parent 0a5d251 commit 39a291b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/oauth2_workflow.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ The steps below outline how to use the Resource Owner Client Credentials Grant T
175175
.. code-block:: pycon
176176
177177
>>> from oauthlib.oauth2 import BackendApplicationClient
178+
>>> from requests_oauthlib import OAuth2Session
178179
>>> client = BackendApplicationClient(client_id=client_id)
179180
>>> oauth = OAuth2Session(client=client)
180181
>>> 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
185186
.. code-block:: pycon
186187
187188
>>> from oauthlib.oauth2 import BackendApplicationClient
189+
>>> from requests_oauthlib import OAuth2Session
188190
>>> from requests.auth import HTTPBasicAuth
189191
>>> auth = HTTPBasicAuth(client_id, client_secret)
190192
>>> client = BackendApplicationClient(client_id=client_id)

0 commit comments

Comments
 (0)