openid / AppAuth-JS

JavaScript client SDK for communicating with OAuth 2.0 and OpenID Connect providers.
Apache License 2.0
985 stars 161 forks source link

Couldn't connect to Discord #106

Closed Djaymare closed 5 years ago

Djaymare commented 5 years ago

Hello ! It may be a noobish question, but I couldn't find any other sample than https://github.com/googlesamples/appauth-js-electron-sample. How would I connect to Discord ?

Expected Behavior

Some Discord endpoint should return a json

Describe the problem

Using the sample, I replaced openIdConnectUrl :

How can I get the json ?

tikurahul commented 5 years ago

Take a look at: https://discordapp.com/developers/docs/topics/oauth2

You will need the authorization and token endpoints. In addition you will also need to sign up for a client_id.