adonisjs / ally

AdonisJS Social Authentication Provider
MIT License
158 stars 54 forks source link

Fixed missing `identify` scope for Discord OAuth2 #128

Closed Bricklou closed 3 years ago

Bricklou commented 3 years ago

Proposed changes

Just added identify scope to the default required scopes. Without this identify scope, the Discord API throw an "Unauthorized" (401) error. Fix #127

Types of changes

Bug fixing

What types of changes does your code introduce?

Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

thetutlage commented 3 years ago

Can you please open another PR mentioning that the user call will fail, if someone defines custom scopes and do not add identity in it?

Bricklou commented 3 years ago

On the documentation you mean ?

thetutlage commented 3 years ago

Yup. For docs. Here's the link to the repo https://github.com/adonisjs/docs.adonisjs.com

thetutlage commented 3 years ago

Thanks for the PR :)