electrode-io / electrode-ota-server

Electrode Over The Air Server for hot deployment of React Native and Cordova mobile apps
Other
204 stars 40 forks source link

Is it possible to config othter oauth2 provider? #14

Closed BigBaBei closed 6 years ago

BigBaBei commented 7 years ago

I dont't want to use github ,because I have my own oauth2 server. Does current server support that function?

awhelms commented 7 years ago

From what I can gather, it uses the bell plugin for hapijs to swap out oauth providers. https://github.com/hapijs/bell. I am not sure what you need to put in your config to make it work for your server though. You may also need to write your own plugin similar to the electrode-ota-server-auth-github (https://github.com/electrode-io/electrode-ota-server/tree/master/electrode-ota-server-auth-github).

jspears commented 6 years ago

You can, I had it working against github and azure a while back out of the box. Its been a while so I don't remember all the magic. You shouldn't have to do the auth-github thing, as that is a fix to github's oatuth, that doesn't return email like it should.

datvong-wm commented 6 years ago

As awhelms and jspears has mentioned, you can use https://github.com/hapijs/bell for your auth layer.