Giter Site home page Giter Site logo

SAML about docs-old HOT 12 CLOSED

rocketchat avatar rocketchat commented on August 21, 2024 6
SAML

from docs-old.

Comments (12)

Rohlik avatar Rohlik commented on August 21, 2024 1

Here you can see pull request for SAML docs - c244f5a

from docs-old.

failattu avatar failattu commented on August 21, 2024

Hello,

Any idea when this could be done? Currently I am working on installing rocket with SAML and documentation would help. Especially where the metadata.xml is located on the server?

Certificate format, idp endpoint location, how to setup idp initiated vs. client initiated SAML.

From terminology point of view it would be good to specify what you mean by custom provider, custom entry point. What to minimally configure for th system to work and that public and private certificates are for security and custom certificate is the idp certificate.

I would say basic documentation is pretty fast to write and would hope to see it soon.

If I get this working I might do some of it myself. If you have answers to the things pointed above I would really like them.

from docs-old.

failattu avatar failattu commented on August 21, 2024

Perfect. Managed to do with this.

from docs-old.

sc10n avatar sc10n commented on August 21, 2024

@failattu Could you shed some light on how you did it? I followed the SAML docs and didn't seem to make much headway. What IdP are you using? We are using ADFS and I can't seem to get it to work. After entering all the data and trying the SAML login button i get Error: Unexpected SAML service https: and the url doesn't seem correct https://rc.example.orgl/_saml/authorize/https://rc.example.orgl/_saml/metadata/rocket-chat/5TYnepg5zXbRkLCwf

ADFS doesn't seem to validate the metadata url either. Any help would be greatly appreciated!

from docs-old.

Rohlik avatar Rohlik commented on August 21, 2024

@sc10n Can you show your configuration in RC? (you can mask your private data)

from docs-old.

sc10n avatar sc10n commented on August 21, 2024

saml-settings

from docs-old.

Rohlik avatar Rohlik commented on August 21, 2024

@sc10n We are using ADSF too, but in "Custom Issuer" field, we have only something like this: https://chat.company.cz, which is our RC url. Also according to RocketChat/Rocket.Chat#2770 (comment) we have "Generate Username" set to True.

from docs-old.

sc10n avatar sc10n commented on August 21, 2024

Thanks for the tip @Rohlik, I think I am getting closer. Now I'm getting
MSIS7102: Requested Authentication Method is not supported on the STS.
which led me to start digging into the SAML code. We use a smart card with our ADFS so I need the assertions to reflect a smart card. I found this here:
Rocket.Chat/packages/meteor-accounts-saml/saml_utils.js

	request +=
		'<samlp:RequestedAuthnContext xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" Comparison="exact">' +
		'<saml:AuthnContextClassRef xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</saml:AuthnContextClassRef></samlp:RequestedAuthnContext>\n' +
		'</samlp:AuthnRequest>';

So in my local copy I changed Comparison to minimum and the assertion to unspecified. That got me farther, I now get the smart card login page from our ADFS, but the certificates aren't listed. I am still digging. Do you guys use certificate auth with your SAML? If I ever make it work I will post back and possibly create a merge request.

from docs-old.

Rohlik avatar Rohlik commented on August 21, 2024

We don´t use certificate.

from docs-old.

sc10n avatar sc10n commented on August 21, 2024

No problem. I think I am really close. I got the certificates to appear and send. I'm just now getting No signature verification certificate found for issuer 'https://example.org'. on the ADFS side, so I'm working through making AFDS see the self-signed cert of RC as the relaying party.

from docs-old.

sc10n avatar sc10n commented on August 21, 2024

It seems having a non-self-signed cert helped ADFS use the metadata to setup the RP which seems to help with some errors. However, I am stuck at finding the correct authentication class and proper nameids to match for Smartcards. I've really been banging my head against the wall the past few days... I have tried changing the authentication classes and nameids in saml_utils.js to various combinations to figure out how to do smartcard assertions. There is just some disconnect between RC and ADFS that won't allow it. It seems that the implementation of SAML on the RC is only focused on passwords and doesn't allow for anything else, maybe I am wrong here but its how it looks when I review the code.

I may have to move on from this if I can't find a solution soon. Any help would be greatly appreciated.

from docs-old.

Rohlik avatar Rohlik commented on August 21, 2024

@engelgabriel The docs for SAML are merged, so this issue should be closed.

from docs-old.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.