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
Added mixer provider #314
Added mixer provider #314
Conversation
lib/providers/mixer.js
Outdated
token: uri + 'api/v1/oauth/token', | ||
scope: ['user:details:self'], | ||
useParamsAuth: true, | ||
scopeSeparator: ',', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used by default, but this should be a space. We follow the spec properly :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is not used by default? and yes, just got a message in discord, sorry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default scope is set to user:details:self
, so there's not multiple scopes to separate. However if a consumer overrides this and requests additional scopes, they'll get rejected.
https://travis-ci.org/hapijs/bell/jobs/238105605 Is that an issue on my side? |
yarn.lock
Outdated
@@ -0,0 +1,1294 @@ | |||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to commit this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh no, that got generated when i installed the needed dependencies with yarn, thought that is already in the .gitignore
, removing it asap.
options = options || {}; | ||
|
||
const uri = options.uri || 'https://mixer.com'; | ||
const user = options.uri ? options.uri + '/api/v1/users/current' : 'https://mixer.com/api/v1/users/current'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably just be:
const user = uri + '/api/v1/users/current';
Thank you for this, it's now merged through #314 |
Tested, seems like it is working. Would appreciate it when someone else could test it.