@@ -68,9 +68,9 @@ the provider is Google and the protected resource is the user's profile.
6868 scope=scope)
6969 >>> authorization_url, state = oauth.authorization_url(
7070 'https://accounts.google.com/o/oauth2/auth',
71- # access_type and approval_prompt are Google specific extra
71+ # access_type and prompt are Google specific extra
7272 # parameters.
73- access_type="offline", approval_prompt="force ")
73+ access_type="offline", prompt="select_account ")
7474
7575 >>> print 'Please go to %s and authorize access.' % authorization_url
7676 >>> authorization_response = raw_input('Enter the full callback URL')
@@ -163,17 +163,17 @@ Backend Application Flow
163163The steps below outline how to use the Resource Owner Client Credentials Grant Type flow to obtain an access token.
164164
1651650. Obtain credentials from your OAuth provider. At minimum you will
166- need a ``client_id `` and ``client_secret ``.
166+ need a ``client_id `` and ``client_secret ``.
167167
168168 .. code-block :: pycon
169-
169+
170170 >>> client_id = 'your_client_id'
171171 >>> client_secret = 'your_client_secret'
172172
173173 1. Fetch an access token from the provider.
174174
175175 .. code-block :: pycon
176-
176+
177177 >>> from oauthlib.oauth2 import BackendApplicationClient
178178 >>> client = BackendApplicationClient(client_id=client_id)
179179 >>> oauth = OAuth2Session(client=client)
@@ -183,14 +183,14 @@ The steps below outline how to use the Resource Owner Client Credentials Grant T
183183 If your provider requires that you pass auth credentials in a Basic Auth header, you can do this instead:
184184
185185 .. code-block :: pycon
186-
186+
187187 >>> from oauthlib.oauth2 import BackendApplicationClient
188188 >>> from requests.auth import HTTPBasicAuth
189189 >>> auth = HTTPBasicAuth(client_id, client_secret)
190190 >>> client = BackendApplicationClient(client_id=client_id)
191191 >>> oauth = OAuth2Session(client=client)
192192 >>> token = oauth.fetch_token(token_url='https://provider.com/oauth2/token', auth=auth)
193-
193+
194194 Refreshing tokens
195195-----------------
196196
0 commit comments