feathersjs / feathers

The API and real-time application framework
https://feathersjs.com
MIT License
15.08k stars 752 forks source link

Single Sign-on (SSO) #1342

Open Mangatt opened 7 years ago

Mangatt commented 7 years ago

After heavy research, I'm still not sure what is the best way to implement Single Sign-on (SSO) with feathers.

Scenario:

There are few possible solutions, but none of them feels right:

Any thoughts?

marshallswain commented 7 years ago

Do you control all of the domains & servers?

Mangatt commented 7 years ago

Yes.

Mangatt commented 7 years ago

I've stumbled upon option of running my own OAuth server for local auth, but that seems quite complicated. This is not that uncommon scenario, aren't there any simpler solutions?

marshallswain commented 7 years ago

I'm not certain what your exact requirements are, but maybe this gist will help with cross domain auth: https://gist.github.com/marshallswain/3c9e5b3b177b977468b5b711b6254f67

ekryski commented 7 years ago

Somewhat related to #469 and #548

Dahkenangnon commented 4 years ago

What ?

I'm facing the same problem but with some difference:

And ?

I have a feathers js app and and others express-node js app. Now i want to have a sso authentication system for all these system.

Architecture :woman_technologist: ?

Apps are like:

app1.domain.com app2.domain.com app3.domain.com feathers.domain.com I'm on a vps.

Need your help please !

Do you have some suggestion or recommandation for me please ? Can i use the Oauth of feathers ? Because there are a miss of feathers and node js app, is this(sso) possible ?

Thank very for time you spend to respond to this.

marshallswain commented 4 years ago

I'm doing single sign on in a couple of apps. I can only recommend using the feathers-Auth0 adapter and turning most of the work over to Auth0 for this situation. It has been really refreshing to be able to focus on my apps instead of constantly revisiting auth.