Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Add warnings and helpers for prompt='consent'. #572

Merged

Conversation

theacodes
Copy link
Contributor

Fixes #453

This is the last one for 3.0.0. After this, I'll send the release PR.

:)


def _check_for_approval_prompt(self):
approval_prompt = self.params.get('approval_prompt')
if approval_prompt:

This comment was marked as spam.

This comment was marked as spam.

@@ -1843,6 +1843,22 @@ def __init__(self, client_id,
}
self.params.update(kwargs)

self._check_for_approval_prompt()

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@nathanielmanistaatgoogle
Copy link
Contributor

First pass completed.

@theacodes theacodes force-pushed the auth-approval-prompt branch 2 times, most recently from b1ce684 to ccddbc2 Compare July 27, 2016 21:47
@@ -1679,6 +1679,16 @@ def test_override_flow_via_kwargs(self):
self.assertEqual(client.OOB_CALLBACK_URN, q['redirect_uri'][0])
self.assertEqual('online', q['access_type'][0])

def test__check_for_approval_prompt(self):
self.flow.params['approval_prompt'] = 'force'
self.flow._check_for_approval_prompt()

This comment was marked as spam.

This comment was marked as spam.

@theacodes
Copy link
Contributor Author

@nathanielmanistaatgoogle this should be ready for another look. I was going to wait on travis but it seems we've been put back in the slow lane.

@theacodes
Copy link
Contributor Author

Travis is (finally) green. :)

@nathanielmanistaatgoogle nathanielmanistaatgoogle merged commit 7b364c2 into googleapis:master Jul 27, 2016
@theacodes
Copy link
Contributor Author

Thanks for all the reviews today, @nathanielmanistaatgoogle. I'll be cutting 3.0.0 tomorrow morning.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants