Oleh Martushevsky
Oleh Martushevsky

Reputation: 31

SAML authentication for Jupyter Hub

I should implement SAML authentication (Okta) in Jupyter. I have tried to search but didn't find anything. Maybe someone knows the solution. Thanks for help.

Upvotes: 3

Views: 7904

Answers (2)

distortedsignal
distortedsignal

Reputation: 369

You should try using the jupyterhub-samlauthenticator.

Check it out here: https://github.com/bluedatainc/jupyterhub-samlauthenticator

Upvotes: 1

Joël Franusic
Joël Franusic

Reputation: 1188

If you are looking to add Single Sign On to Jupyterhub via Okta, then I strongly suggest taking advantage of OpenID Connect. This will be much easier than adding SAML support.

If you need to implement SAML specifically, the typical way would be to use PySAML2, I wrote a detailed guide for adding SAML support to Python/Flask.

However, it looks like Jupyterhub uses Tornado and also appears that PySAML2 doesn't work with Tornado. If you are looking to add SAML support to Jupyter hub and you are feeling very adventurous, then another avenue to investigate would be to implement your own SAML validation using signxml.

Upvotes: 1

Related Questions