Skip to content

Commit

Permalink
Add missing import in Backend Application Flow
Browse files Browse the repository at this point in the history
  • Loading branch information
bfollek authored and singingwolfboy committed Oct 21, 2019
1 parent 0a5d251 commit 39a291b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/oauth2_workflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ The steps below outline how to use the Resource Owner Client Credentials Grant T
.. code-block:: pycon
>>> from oauthlib.oauth2 import BackendApplicationClient
>>> from requests_oauthlib import OAuth2Session
>>> client = BackendApplicationClient(client_id=client_id)
>>> oauth = OAuth2Session(client=client)
>>> token = oauth.fetch_token(token_url='https://provider.com/oauth2/token', client_id=client_id,
Expand All @@ -185,6 +186,7 @@ The steps below outline how to use the Resource Owner Client Credentials Grant T
.. code-block:: pycon
>>> from oauthlib.oauth2 import BackendApplicationClient
>>> from requests_oauthlib import OAuth2Session
>>> from requests.auth import HTTPBasicAuth
>>> auth = HTTPBasicAuth(client_id, client_secret)
>>> client = BackendApplicationClient(client_id=client_id)
Expand Down

0 comments on commit 39a291b

Please sign in to comment.