Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

allow arrays of scopes on routes #1103

Merged
merged 2 commits into from Oct 28, 2013
Merged

allow arrays of scopes on routes #1103

merged 2 commits into from Oct 28, 2013

Conversation

nlf
Copy link
Member

@nlf nlf commented Oct 11, 2013

This lets you specify an array of scopes rather than only one string scope. If you specify an array, any one of the strings in the array must be in the credentials scope.

var failed = (!credentials || !credentials.scope);

if (!failed) {
if (Array.isArray(config.scope)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nlf
Copy link
Member Author

nlf commented Oct 14, 2013

How's that?

@ghost ghost assigned hueniverse Oct 28, 2013
hueniverse pushed a commit that referenced this pull request Oct 28, 2013
allow arrays of scopes on routes
@hueniverse hueniverse merged commit 1c30cba into hapijs:master Oct 28, 2013
hueniverse pushed a commit that referenced this pull request Oct 28, 2013
jmonster pushed a commit to jmonster/hapi that referenced this pull request Feb 10, 2014
allow arrays of scopes on routes
jmonster pushed a commit to jmonster/hapi that referenced this pull request Feb 10, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jan 11, 2020
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.

None yet

2 participants