SAML authentication for Jupyter Hub - saml

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.

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.

You should try using the jupyterhub-samlauthenticator.
Check it out here: https://github.com/bluedatainc/jupyterhub-samlauthenticator

Related

akka-http and JWT

I'm using akka-http-session with the bootzooka seed project. I'm curious what the recommended approach is to implement JWT authentication in akka-http. It appears akka-http-session supports it however the documentation seems to be lacking and examples shown are all using cookie based authentication.
Thank you in advance,
CN
I found this helpful implementing akka-http-sessions:
https://github.com/softwaremill/akka-http-session

SAML : How to implement SSO (Single sign on ) for an web application

I have searched a lot for a good documentation on how to implement SSO as I am a beginner in this field. But got confused with documentations, available online. Is there any documentation that can help me directing :
How to Create/configure IDP , SP, how to implement SSO?
My web application uses, Java 8, angular JS , JSP, Spring ( with annotations), Hibernet, Maven, JBOSS.
Appreciate your time in advance.
Your question is kind of broad which is hard to give a definitive answer. Perhaps knowing better about what to research may help. Please let me try:
Your web application will be an SP. Thus, you don't need to research for how to implement an IdP.
You will need at least 1 IdP to test SSO for your application. Therefore, find out what IdP you want to use and research for how to set it up as well as how to configure a service provider trust against it.
What is the protocol you want to use for SSO? Is it SAML 2.0, WSFed, OAuth2, OpenId Connect or something else? Pick one.
Research a good library that you can use to implement the SP role for your application.
You've mentioned Java and Spring so typically you are looking at Spring Security and SAML.
If that's the case. then you need to implement a client side SAML stack.
Refer: SAML : SAML connectivity / toolkit.

Implement single log in with opensaml in java

I would implement single signing with opensaml library, but don't know which parameter i will pass for log in. So can any body help for that?
Thanks in advance.
The sign on starts with sending a XML message called a AutnRequest to the identity provider. SAML authentication is quite complex so I would suggest reading up on the process. The SAML technical overview is a good start.
When you are ready to start looking at OpenSAML my book, A Guide to OpenSAML, gives a good introduction and step by step on SAML and the OpenSAML library.
Also my blog has a couple of examples on this.
https://blog.samlsecurity.com/categories/opensaml/
https://blog.samlsecurity.com/categories/saml/

SAML guidance required

I just strated my project with SAML 2. I want some help related SAML and OpenSAML libraries v.2.0.
Can someone tell me helpful and comprehensive tutorials for it? I just want to do a small POC.
I need Step-by-Step help for SAML. Here are some of my requirements. Please help.
All SAML specific functionality will be implemented using the open source OpenSAML libraries.
We will support both Service Provider (SP) initiated authentication as well as Identity-Provider (IdP) initiated authentication.
My book, A Guide to OpenSAML, gives a good introduction and step by step on SAML and the OpenSAML library.
Also my blog has a couple of examples on this.
https://blog.samlsecurity.com/categories/opensaml/
https://blog.samlsecurity.com/categories/saml/
I would suggest starting here:
http://identitymeme.org/doc/draft-hodges-learning-saml-00.html

The best way to implement REST in CakePHP 1.3?

Does anyone know of any tutorials that explain clearly how to implement simple REST functionality with authorization.
I've seen a few plugins and got also got some basic REST functionality working but there seems no clear guidelines about how to build a secure REST service in Cake.
Any help appreciated.
Sounds like you need to look into OAuth which uses REST to connect to Web Sevices without sending usernames and passwords.
Try these tutorials for a start
http://code.42dh.com/oauth/
http://www.neilcrookes.com/2010/04/12/cakephp-oauth-extension-to-httpsocket/