OAuth authentication with RoundCube #822
Replies: 4 comments 3 replies
-
So far, I haven't gotten this to work. Though I am using the RoundCube version from Debian stable, and I see that a bunch of improvements have been made to its OAuth client code since then. I might try with the version from Debian testing when I get a chance. |
Beta Was this translation helpful? Give feedback.
-
The latest release of RoundCube, v1.6.9, doesn't appear to include support for RFC8414 (the .well-known endpoint). I tried manually configuring everything. RoundCube correctly redirected me to the Stalwart login "Authorize" page, but after entering a username and password there, I just get the Stalwart login page once again and am not redirected back to RoundCube. No errors are logged anywhere, so I am not sure what is going on. I think I will wait until RoundCube 1.7 is released with the improved OAuth support. It sounds like by that point, Stalwart should support OpenID and so hopefully this will all work better. |
Beta Was this translation helpful? Give feedback.
-
Actually, I experimented more with getting RoundCube to be an OAuth client authenticating against Stalwart. Even using the RoundCube version that doesn't support the However, it looks like 6a5f963 has added support for IMAP authentication via OAuth/OIDC. Is that correct? If that's the case, I look forward to testing those new features and seeing if I can get this all to work. |
Beta Was this translation helpful? Give feedback.
-
Is there now a guide to test it on 0.10.2 with roundcube? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am thinking that it would be very nice to set up RoundCube to authenticate against Stalwart via OAuth. That way, there would be a single sign-on that would give access to webmail as well as the account admin functions offered by the Stalwart web interface. Also, 2FA could be enabled in Stalwart and would also provide additional security for access to RoundCube.
Has anyone got this working?
A sample OAuth config for Roundcube looks like this:
I have tried to set up something similar so that RoundCube will authenticate against Stalwart via OAuth, but I haven't managed to get it working yet. I don't see where I would get the client ID and client secret to set in the RoundCube configuration. Is RoudCube's OAuth compatible with the Stalwart OAuth server? Or are they using different versions of OAuth, perhaps?
Any help or tips would be appreciated.
Best wishes,
-Ian
Beta Was this translation helpful? Give feedback.
All reactions