-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Integrate SAML2 basic authentication - uses pysaml2 #200
Integrate SAML2 basic authentication - uses pysaml2 #200
Conversation
Can one of the admins verify this patch? |
matrixbot: ok to test |
saml2_config: | ||
config_path: "%s/sp_conf.py" | ||
idp_redirect_url: "http://%s/idp" | ||
""" % (config_dir_path, server_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer if saml2 was disabled by default, since not everyone is going to have saml. One way to do this would be to include the commented out config. It would also be nice to include some comments about what the config is for and links to documentation.
Thanks for the pull request! There are a few style warnings that should be easy to fix:
Would it also make sense to allow/support multiple saml backends? |
|
||
def on_GET(self, request): | ||
return (200, {"flows": [{"type": LoginRestServlet.PASS_TYPE}]}) | ||
return (200, {"flows": [{"type": LoginRestServlet.PASS_TYPE}, | ||
{"type": LoginRestServlet.SAML2_TYPE}]}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should only be advertising saml flows if we have saml enabled.
Thank you for the quick review! a) Made saml2 optional |
Thanks, it looks good. not sure why jenkins is complaining though, it doesn't fail pep8 on my box. matrixbot: test this please. |
Oh, that's because @ara4n broke the tests on develop. |
Integrate SAML2 basic authentication - uses pysaml2
Ooops, I've reverted this PR since I've realised this hasn't been "signed off" Could you just confirm you agree to license this code as per https://github.com/matrix-org/synapse/blob/master/CONTRIBUTING.rst#sign-off ? (And if you could also open another PR for this branch that would be great). |
Should I sign-off every commit or would it be ok to add one on the top? |
One at the top is fine :) On Thu, 9 Jul 2015 18:22 Muthu Subramanian notifications@github.com wrote:
|
I just realized that https://github.com/matrix-org/synapse/blob/master/CONTRIBUTING.rst#sign-off says even a comment in the pull request is fine (?) So, here it is: Signed-off-by: Muthu Subramanian muthu.subramanian.karunanidhi@ericsson.com |
Resubmitted: #201 |
some documentation for saml support would be great |
a) The actual call to the pysaml2 for auth/verification calls xmlsec binary (it seems). So, some optimizations around it might be good.
b) Tested only with Redirect based SAML2 auth
c) It requires the following (example) configuration in homeserver.yaml
saml2_config:
config_path: "/home/.../sp_conf.py"
idp_redirect_url: "http://..../idp"
d) sp_conf.py is something like: https://github.com/rohe/pysaml2/blob/master/example/sp-repoze/sp_conf.py.example
https://pythonhosted.org/pysaml2/howto/config.html