openid / AppAuth-JS

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

Electron sample #4

Closed thijscrombeen closed 7 years ago

thijscrombeen commented 7 years ago

Hi,

Do you have an example on how to use this with Electron? I'm willing to contribute this sample if you give me some pointers.

I need to know how to set the redirect uri, so that the oauth provider correctly redirects back to electron.

tikurahul commented 7 years ago

Electron should just work (given that you can consume code for Node). Here is some example code: https://github.com/openid/AppAuth-JS/blob/master/src/node_app/index.ts

tikurahul commented 7 years ago

I have published AppAuthJS to NPM as @openid/appauth. I will upload my Electron sample if you need help consuming the library.

thijscrombeen commented 7 years ago

It would always be nice to have a sample :)

iainmcgin commented 7 years ago

A sample is Coming Soon, we'll let you know when it's available.

tikurahul commented 7 years ago

The electron sample is now available at https://github.com/googlesamples/appauth-js-electron-sample. Thank you for being patient.