From 350a92da92c1a78de4cde5226fe25b854e2a77c4 Mon Sep 17 00:00:00 2001 From: Cong Date: Tue, 25 Aug 2015 10:26:22 +1000 Subject: [PATCH] Add imports for Legacy Application Flow docs --- docs/oauth2_workflow.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/oauth2_workflow.rst b/docs/oauth2_workflow.rst index 2e346947..eba0c68c 100644 --- a/docs/oauth2_workflow.rst +++ b/docs/oauth2_workflow.rst @@ -124,6 +124,8 @@ The steps below outline how to use the Resource Owner Password Credentials Grant .. code-block:: pycon + >>> from oauthlib.oauth2 import LegacyApplicationClient + >>> from requests_oauthlib import OAuth2Session >>> oauth = OAuth2Session(client=LegacyApplicationClient(client_id=client_id)) >>> token = oauth.fetch_token(token_url='https://somesite.com/oauth2/token', username=username, password=password, client_id=client_id,