HewlettPackard / jupyterhub-samlauthenticator

jupyterhub-samlauthenticator
MIT License
37 stars 26 forks source link

Fix minor typo #42

Closed duongnt closed 4 years ago

duongnt commented 4 years ago

Fix forwad -> forward (Fix #40)

Developer Certificate of Origin Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 660 York Street, Suite 102, San Francisco, CA 94110 USA

Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or

(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or

(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.

(d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.

Signed-off-by: Thi Duong Nguyen

codecov-io commented 4 years ago

Codecov Report

Merging #42 into master will decrease coverage by 0.53%. The diff coverage is 25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #42      +/-   ##
==========================================
- Coverage   91.54%   91.01%   -0.54%     
==========================================
  Files           2        2              
  Lines         343      345       +2     
==========================================
  Hits          314      314              
- Misses         29       31       +2
Impacted Files Coverage Δ
samlauthenticator/samlauthenticator.py 90.98% <25%> (-0.54%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b319e77...26c8cee. Read the comment docs.

distortedsignal commented 4 years ago

I think this is a good start, but I'm a little concerned that we're breaking backward compatibility with this change. Someone out there who has slo_forwad_on_logout set might get broken by this. Is it ok if I make a PR against your branch?

duongnt commented 4 years ago

I think this is a good start, but I'm a little concerned that we're breaking backward compatibility with this change. Someone out there who has slo_forwad_on_logout set might get broken by this. Is it ok if I make a PR against your branch?

Sure. I guess we can leave the typo slo_forwad_on_logout there for backward-compatibility, but add a [Deprecated] note?

distortedsignal commented 4 years ago

@duongnt If you merge my distortedsignal:ds-minor-changed branch into your branch, I'll merge your branch into this master and then cut a bugfix release.

duongnt commented 4 years ago

@duongnt If you merge my distortedsignal:ds-minor-changed branch into your branch, I'll merge your branch into this master and then cut a bugfix release.

Thanks @distortedsignal, I merged your changes to my master.

ebebpl commented 4 years ago

Hello, Thanks for awesome work! The SAMLAuthenticator is mostly working as documented. Ran into an issue when setting the c.SAMLAuthenticator.slo_forwad_on_logout = True . Tried both 'forward' and 'forwad'. What should this value be set to?

[E 2020-03-16 18:36:36.179 JupyterHub web:1670] Uncaught exception GET /hub/logout (::ffff:10.x.x.x) HTTPServerRequest(protocol='http', host='myhost.com:8000', method='GET', uri='/hub/logout', version='HTTP/1.1', remote_ip='::ffff:10.x.x.x') Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/tornado/web.py", line 1592, in _execute result = yield result File "/opt/anaconda3/lib/python3.7/site-packages/samlauthenticator/samlauthenticator.py", line 754, in get forwad_on_logout = True if authenticator_self.slo_forwad_on_logout else False AttributeError: 'SAMLAuthenticator' object has no attribute 'slo_forwad_on_logout'