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

cookie breaks with UID with email #21

Open
elfeto opened this issue Sep 16, 2016 · 0 comments
Open

cookie breaks with UID with email #21

elfeto opened this issue Sep 16, 2016 · 0 comments

Comments

@elfeto
Copy link

elfeto commented Sep 16, 2016

Hi,

I am using python here, whenever I create the cookie with the userid (UID) with the email it breaks, it works fine with other strings but with the @ it replaces it with %40 and makes the cookie invalid.

Is there a workaround or something?

This is my python code:
from paste.auth import auth_tkt
ticket = auth_tkt.AuthTicket('TOP SECRET!', userid='[email protected]', ip='0.0.0.0', user_data="[email protected]")
print ticket.cookie()

Error log:
TKT valid_ticket: (parsed) uid 'felipe.torres.cs%40gmail.com', tokens '', user_data 'test', ts '1474047351', ...
mod_auth_tkt.c(820): TKT ticket_digest: using secret 'TOP SECRET!', ip '0.0.0.0', ...
TKT valid_ticket: ticket hash (current secret) is invalid, and no old secret set - digest 'ae4f4372680e13a00481301', ticket 'e302f8654678876567876767dc2d77felipe.torres.cs%40gmail.com!test', referer: ...

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

1 participant