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

Fix scope encoding in token requests #187

Closed

Conversation

cjlarose
Copy link

Fixes #186

...to make it easier to add new tests with different request bodies
The `scope` parameter is not used for the Authorization Code grant. See
[RFC 6749 § 4.1.3][spec].

[spec]: https://tools.ietf.org/html/rfc6749#section-4.1.3
@@ -1,7 +1,8 @@
{
"rules": {
"max-len": "off",
"object-curly-newline": "off"
"object-curly-newline": "off",
"func-names": "off"
Copy link
Author

@cjlarose cjlarose Apr 22, 2018

Choose a reason for hiding this comment

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

I modified a few tests to write shared values to this and removed arrow function literals to do this.

The use of arrow function literals is explicitly discouraged by mocha, but I'm happy to switch the tests back to using block-scoped variables and arrow literals if preferred.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi @cjlarose Sorry for the delay, please revert the mocha test changes related to the arrow functions usage. I am aware of what mocha suggests and open to changes, however in order to make your change easier to merge right now, I need you to restore those changes.

Copy link
Author

Choose a reason for hiding this comment

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

Will do! 👍

@ConstantineYurevich
Copy link

Hi, when this PR will be merged?

@cjlarose
Copy link
Author

@jonathansamines Anything I can do to help move this PR along?

@jonathansamines jonathansamines added this to the 3.0.0 milestone Jun 13, 2018
@jonathansamines jonathansamines removed this from the 3.0.0 milestone Sep 24, 2019
@jonathansamines
Copy link
Collaborator

Resolved by #200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scopes are encoded incorrectly when passed as an array
3 participants