Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Allow collection scopes as valid during auth #1973

Merged
merged 1 commit into from
Nov 19, 2019

Conversation

hstove
Copy link
Collaborator

@hstove hstove commented Nov 13, 2019

As described in #1969 , if you pass a collection scope, the current production browser will block the authentication request because it has an invalid scope. I've changed that to allow collection scopes.

I also fixed a bug where the validateScopes function only returned false if the last scope was invalid - if you passed scopes like ['invalid', 'store_write'] then the function would pass.

You can test this with https://planet.friedger.de/ , which requests the 'contacts' scope.

@hstove hstove requested a review from yknl November 13, 2019 23:50
@hstove hstove changed the base branch from master to develop November 13, 2019 23:50
@hstove hstove added this to the Browser 0.37 milestone Nov 13, 2019
Copy link
Collaborator

@yknl yknl left a comment

Choose a reason for hiding this comment

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

LGTM

@moxiegirl moxiegirl added the Impacts DOCS Requires new or updates to our documentation. label Nov 18, 2019
@hstove hstove merged commit 2139a3c into develop Nov 19, 2019
@hstove hstove mentioned this pull request Nov 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Impacts DOCS Requires new or updates to our documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants