-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Feature Request: Auth0 login #1722
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
Comments
Done already. https://github.com/wekan/wekan/wiki/OAuth2#auth0 |
StatusCurrently I still am figuring how to get single login working with Auth0, with Wekan+Rocket.Chat+WordPress+PHP script behind it. It would be helpful if there are others trying to this too, and would help with SSO cookies etc. Current settings I use are at https://github.com/wekan/wekan/wiki/OAuth2#auth0 It is possible to use Auth0 with Wekan OAuth2, but OAuth2 has bug that it logins always as first Admin user. After that is fixed, next step would be to get single login working, so that after Auth0 login (like linkedin/google/etc) user is logged into all apps including Wekan, without needing to click Wekan Oidc button or Rocket.Chat login button. Some links to Auth0 docs I got from support
For SSO best option is to implement universal login page. The universal login approach will store a session cookie on your tenant's domain for the user logging in. For the Wordpress app, you can configure universal login from the Wordpress plugin's advance settings with the For PHP app, our reference applications can be useful.
I guess you already implemented the login with OAuth2 for Rocket chat. I assume it should be with using the universal login page. If you can share a HAR file for it, I can have a better idea. You can find how to capture the HAR file here. To have a better idea of how SSO works with Auth0, you may also check our sample here.
Auth0 logout endpoint is meant only to end the session for the shared session cookie. It is the app's responsibility to clear any sessions/cookies of their own. So in your case, you first need to call the rocket API to logout from the app itself and then redirect to the Auth0 logout endpoint to clear the SSO session managed by Auth0.
This is beyond our control. As in the previous case, you need to clear any session for wekan from the app itself and then redirect to Auth0's logout endpoint.
Currently, we don't support backchannel logout. Which means that, if a user logs out from one app using the logout endpoint, we clear the shared session cookie for all; however, there isn't a mechanism to send a message to the apps opened in the other tabs of the browser. But when the other apps try to refresh their session with the silent authentication, Auth0 will reply with the login required prompt and won't send new access/id tokens. |
It seems that Auth0 has only experimental support for LDAP, and OAuth2 still has bug. But probably LDAP, OAuth2 etc is not needed at all. Next I will try Auth0.js mentioned at universal login page. I would think that Auth0.js code should work like this:
I would think that 4) would work at webbrowser, and on mobile Rocket.Chat uses some mobile API so redirect would not prevent it from logging in with username and password. I have not tried it yet. |
Related trying to get Auth0 working on OIDC issue Thanks for your trying to help. Some more info that I have looked a little:
|
I did add info to wiki with what settings currently Auth0 passwordless email code login works to login to RocketChat: https://github.com/wekan/wekan/wiki/OAuth2#4-auth0-id-provider-to-custom-oauth-rocketchat |
With these settings at Auth0, using Wekan v2.25 devel branch:
I get this debug response:
So in Auth0 Logs it looks like that login to Auth0 did work, and required info is at above response I think, but login to Wekan does not work with OIDC button. Can you help please? |
This maybe makes [Auth0 login possible](#1722) with OIDC. Thanks to GitHub user xet7.
I think I figured it out. I'll test. |
Does not work yet. |
The OAUTH2_ID_MAP should not be ‘sub’. Try using ‘email’ instead. |
When I try
I have tried various request permissions but for example these does not work:
At browser console I get this error:
That code is part of this OAuth2 code:
I'm trying to get it working with this config, but it does not work yet: |
Now Auth0 login works. https://github.com/wekan/wekan/wiki/OAuth2#auth0 |
https://atmospherejs.com/?q=auth0
https://auth0.com/
The text was updated successfully, but these errors were encountered: