Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add with_scopes_if_required helper #65

Merged
merged 1 commit into from
Oct 31, 2016
Merged

Conversation

theacodes
Copy link
Contributor

This will make it easy to remove some code / branches in google-cloud-python.

@theacodes theacodes changed the title Add created_scoped_if_required helper Add create_scoped_if_required helper Oct 31, 2016
@theacodes theacodes changed the title Add create_scoped_if_required helper Add with_scopes_if_required helper Oct 31, 2016

assert scoped_credentials is not unscoped_credentials
assert not scoped_credentials.requires_scopes
assert scoped_credentials.has_scopes(['one', 'two'])

This comment was marked as spam.

@theacodes theacodes merged commit f89a3cf into master Oct 31, 2016
@theacodes theacodes deleted the with-scopes-if-required branch October 31, 2016 17:52
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants