-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
saml configuration #2770
Comments
i found the way to do that.. |
Hey @assafm81 it would be nice if you can provide some information about how you configured rocket chat with adfs. I'm a bit lost in the windows world :D Were you successfull in creating an SSO with rocketchat and adfs? |
Thx @assafm81 we will give it a try. We spend the whole wednesday trying to bring the ADFS to work. But in 90% we got an error after login in the popup. But your fieldmapping looks promising :D |
@assafm81 Hey can you provide the settings you used for Rocket Chat as well? I'm having issues getting my ADFS to respond. Not sure what the settings mean. Thanks, |
Has anyone else been able to figure this out? I have asked many times in their support chat to update their SAML documentation and only get silence. My organization is really interested in using this if we can get it work with ADFS. |
I was updating all the settings that needed to support SAML. On Mon, Oct 3, 2016, 18:07 Jamie T. [email protected] wrote:
|
Quick guide for Rocketchat running on SUSE Enterprise 12 SP1 with Microsoft ADFS 2.0 running on Windows Server 2008 R2
Site URL: https://rocketchat.mydomain.com
Enable :True
New Relaying Party Trust Go to properties of Rocket.Chat Go to Edit Claims Rules of Rocket.Chat, use assafm81 settings |
Thank you very much for the response! I will try these settings today and report back. One question, I am assuming that the Customer cert is the SSL cert I generated for the reverse SSL nginx proxy? |
We configured our ADFS per the instructions but we are getting a Error: Unable to validate response url: Error: Invalid signature. Other applications we can worked with uses a metadata.xml method but I am not seeing it in RC. I feel we are close, we are just missing a key detail. Thank you again for the help! |
Are you using cert signature in the realm? If so try to remove it. On Wed, Oct 5, 2016, 23:02 Jamie T. [email protected] wrote:
|
Not sure what you mean by that, we have other apps that use that adfs server so we can't remove anything or it may break other apps. |
On the specific realm for the rocket in the adfs server.. Open your adfs manager and check in the realm you will see other realms On Wed, Oct 5, 2016, 23:11 Jamie T. [email protected] wrote:
|
Can think of 3 possible things to look for; -Is the Custom Certificate string right in the SAML page on Rocketchat And finally, try opening Rocketchat using a Firefox private window or Chrome incognito window. |
Where does the Custom Certificate string come from? Is it generated from adfs? is it the ssl cert local to the machine? |
We used our public trusted domain certificate we obtained. We used openssl to print the contents of our certificate and then pasted the string of characters between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- into the Custom Certificate box |
I am assuming this is the token signing cert from adfs? My apologies but I am still confused as to the origin of the certificate. |
Adfs is generating these errors when we try to login.
|
To add on: With the adfs token signing cert, I converted it to a pem format using openssl and grabbed the string. With that string I get Error:
|
We get that error sometimes if we have used adfs to authenticate to something else. have you now tried the private browser window? |
I have tried in a private browser (both in fact) they get the same response.
I tried the SSL cert for the ADFS server and went back to
|
So rocket.chat needs a dedicated adfs server? BTW we are using ADFS 3.0, if it matters. |
The certificate we are using is a trusted wildcard cert from a 3rd party certificate authority... It just so happens we use that same cert on our ADFS and Rocketchat. I think you are much closer with the "Unable to validate response url: Error: Missing SAML assertion" error Not sure how different ADFS 3.0 is compared to 2.0. Can only advise to review the settings from my original post Rocketchat doesn't need its own adfs |
Yeah I am using a self-signed cert on RC and the ADFS has a cert from and Internal CA I believe. I will review the settings and see if I can decipher anything. |
I think this is an important message... MSIS7102: Requested Authentication Method is not supported on the STS. Doing some digging, and looking at the SAML that is sent by RC, I think more types of auth need to be sent by RC, as we use certificate based auth in our systems which I don't think works with Forms Auth in ADFS. I am trying to get that auth type turned on, but my AD guys are fearful it could muck up other apps that are using that system.
A solution from the RC side would be handling a gamut of options like the ones below. This would allow many different auth types to be used.
Thoughts? |
We were finally able to make SAML work (intermittently) however its only asking for a user/pass. Is there an option somewhere on the RC side to ask for another assertion type? Such as a certificate? |
I was finally able to make ADFS SSO work without prompting the user for a username and password. The missing piece for me (after following the info from @assafm81 and @megamaced) was to add a new assertion for Windows Integrated Authentication. I installed Rocket.Chat manually rather than using the Snap installer. In my Rocket.Chat directory, I browsed to 'programs/server/packages' and then edited 'steffo_meteor-accounts-saml.js'. On line 535 (as of today, that may very well change) the line says: I changed that to say: Note: that should be two separate lines. I added the assertion that says "urn:federation:authentication:windows" before the one that was originally there, and I adjusted both assertions to be properly XML-formatted. After doing this I was able to successfully login via ADFS SSO without a password prompt (or form). Note: everything was working OK prior to this, you just had to type your password, so make sure you get everything working with the instructions earlier in this thread before adding my piece to the puzzle. |
Hi everyone,
Maybe since then, things have changed. In the SAML documentation, at the very end : Idp Returned Attribute Name Usage I don't see cn and email configuration in assafm81 settings. Any help is welcome :) |
@sc10n how you managed to fix the "invalid signature " issue in the end? |
Did you ever find a solution either? |
Your Rocket.Chat version: 0.24.0
how can i configure rocket chat with ADFS...
what are the cleam rule that i need to create in the adfs server ?
thanks
assaf
The text was updated successfully, but these errors were encountered: