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

Allow collection scopes as valid during auth - #1973

Merged
hstove merged 1 commit into
developfrom
feature/valid-collection-scopes
Nov 19, 2019
Merged

Allow collection scopes as valid during auth#1973
hstove merged 1 commit into
developfrom
feature/valid-collection-scopes

Conversation

@hstove

@hstovehstove commented Nov 13, 2019

Copy link
Copy Markdown
Contributor

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 yknlNovember 13, 2019 23:50
@hstove
hstove changed the base branch from master to developNovember 13, 2019 23:50
@hstovehstove added this to the Browser 0.37 milestone Nov 13, 2019

@yknlyknl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@moxiegirlmoxiegirl added the Impacts DOCS Requires new or updates to our documentation. label Nov 18, 2019
@hstove
hstove merged commit 2139a3c into developNov 19, 2019
@hstovehstove mentioned this pull request Nov 19, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Impacts DOCSRequires new or updates to our documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@hstove@yknl@moxiegirl