mawie81 / electron-oauth2

A library to handle OAuth2 authentication for your Electron app.
MIT License
99 stars 56 forks source link

Specify additional parameters in the token request? #13

Closed HSAR closed 7 years ago

HSAR commented 7 years ago

Attempting to use electron-oauth2 with Azure Active Directory results in an error because the token request to AAD must specify the "resource" (internal terminology) that the token is to be redeemed against. This takes the form of an additional parameter in the token request, but there isn't any way to do this at the moment.

Implementation thoughts: Since function tokenRequest(data) at index.js:75 does a queryString.stringify(data) call before sending its request, everything is in place except for a way to pass extra data into the data object.

mawie81 commented 7 years ago

Landed with 2.4.0