jedireza / aqua

:bulb: A website and user system starter
https://jedireza.github.io/aqua/
MIT License
1.38k stars 356 forks source link

Question: Suggestion for an integration with Oauth (2) #201

Closed orff closed 7 years ago

orff commented 7 years ago

For sharing of session on other sites. Im hoping for someone with experience with Aqua or its dependancies who might be able to suggest to me a high level architecture or hints before I start this.

Ideally, I would be able to allow users to Authenticate using OAuth on 3rd party sites, but my aqua based API will allow them to securely allow their data to be shared on that site.

jedireza commented 7 years ago

For 3rd party authentication, take a look at Bell.

https://github.com/hapijs/bell

orff commented 7 years ago

Thanks, looks great!

jloriente commented 7 years ago

Anybody has tried the integration of bell with aqua? I think will be quite useful to support also OAuth in aqua using Bell.

Would be great to see some sample code about how to support OAuth with Aqua

jedireza commented 7 years ago

The bell docs should have all the code examples necessary. Server side Aqua is just a vanilla hapi server.

I've decided against having 3rd party auth being built-in by default. It's a reasonably easy upgrade for anyone creating their own project.