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

Added mixer provider #314

Closed
wants to merge 11 commits into from
Closed

Added mixer provider #314

wants to merge 11 commits into from

Conversation

ghost
Copy link

@ghost ghost commented May 31, 2017

Tested, seems like it is working. Would appreciate it when someone else could test it.

token: uri + 'api/v1/oauth/token',
scope: ['user:details:self'],
useParamsAuth: true,
scopeSeparator: ',',
Copy link
Contributor

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 :)

Copy link
Author

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.

Copy link
Contributor

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.

@ghost
Copy link
Author

ghost commented May 31, 2017

yarn.lock Outdated
@@ -0,0 +1,1294 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.

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?

Copy link
Author

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';
Copy link
Contributor

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';

@ldesplat
Copy link
Contributor

Thank you for this, it's now merged through #314

@ldesplat ldesplat closed this Sep 24, 2017
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.

None yet

4 participants