Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Add with_scopes_if_required helper#65

Merged
theacodes merged 1 commit intomasterfrom
with-scopes-if-required
Oct 31, 2016
Merged

Add with_scopes_if_required helper#65
theacodes merged 1 commit intomasterfrom
with-scopes-if-required

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants