Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single Sign-on (SSO) #1342

Open
Mangatt opened this issue Apr 19, 2017 · 7 comments
Open

Single Sign-on (SSO) #1342

Mangatt opened this issue Apr 19, 2017 · 7 comments

Comments

@Mangatt
Copy link

Mangatt commented Apr 19, 2017

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

Scenario:

  • user logins at login.feathersjs.com, JWT is issued
  • user can automatically login at app1.feathersjs.com or app2.feathersjs.com (possibly at otherdomain.com)
  • after logout, all JWTs are invalidated

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

  • turn on cookies - CSRF threat, not applicable for otherdomain.com
  • use window.postMessage - not working at Safari 7+
  • use redirects (app1 does not have JWT, redirects to login, JWT is sent back) - no logout, possible security concern

Any thoughts?

@marshallswain
Copy link
Member

marshallswain commented Apr 19, 2017

Do you control all of the domains & servers?

@Mangatt
Copy link
Author

Mangatt commented Apr 19, 2017

Yes.

@Mangatt
Copy link
Author

Mangatt commented Apr 20, 2017

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
Copy link
Member

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
Copy link
Contributor

ekryski commented Jul 24, 2017

Somewhat related to #469 and #548

@daffl daffl transferred this issue from feathersjs-ecosystem/authentication May 8, 2019
@Dahkenangnon
Copy link

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 👩‍💻 ?

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants