Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include Cookies in requests #18

Closed
nielsole opened this issue May 7, 2018 · 5 comments
Closed

Include Cookies in requests #18

nielsole opened this issue May 7, 2018 · 5 comments

Comments

@nielsole
Copy link

nielsole commented May 7, 2018

Hi Johan,

thanks for the great software
I am running yopass behind SSO. Authentication is done via a cookie.
Unfortunately currently yopass is not sending the cookies with the request.
The field that will most likely solve this is: https://developer.mozilla.org/en-US/docs/Web/API/Request/Request credentials: include
I do not see any case where transmitting the cookie with the request would have negative consequences, so this might be good to make the default behaviour.

@jhaals
Copy link
Owner

jhaals commented Jul 10, 2018

Hi @nielsole!
It warms my heart that you enjoy the software :)
Sorry for not responding earlier. I think it makes sense to include credentials from consulting the docs. I'll let this ticket remain open until I spend time on yopass the next time. If you feel like contributing I'm happy to accept your PR to https://github.com/yopass/website

Thanks again!

@jhaals
Copy link
Owner

jhaals commented Oct 3, 2018

Hi @nielsole, I assume you fixed this yourself earlier but I just wanted to let you know that I added credentials include to the website with https://github.com/yopass/website/pull/1

@jhaals jhaals closed this as completed Oct 3, 2018
@nielsole
Copy link
Author

thanks, I didn't get to properly fixing it and had a workaround running. 🎉

@jhaals
Copy link
Owner

jhaals commented Oct 16, 2018

@nielsole glad you managed to get a workaround. I quickly discovered that the fix I pushed caused yopass to fail under aws lamda because of CORS header checks and reverted not to mess things up for existing users. A workaround would be to have an environment variable during build of website to enable credentials, how does that sound?

@nielsole
Copy link
Author

that sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants