Fernet tokens were previously percent encoded. This can cause issues with
clients doing their own encoding or not. By removing the padding and then
re-establishing it when we validate the token, we don't present that problem to
clients. This also shortens the length of a Fernet token.
Reviewed: https:/ /review. openstack. org/220242 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=f3e3a653f9c 9ce0f9a7ba842ef f118e5887eb388
Committed: https:/
Submitter: Jenkins
Branch: master
commit f3e3a653f9c9ce0 f9a7ba842eff118 e5887eb388
Author: Lance Bragstad <email address hidden>
Date: Thu Sep 3 16:09:03 2015 +0000
Remove padding from Fernet tokens
Fernet tokens were previously percent encoded. This can cause issues with
clients doing their own encoding or not. By removing the padding and then
re-establishing it when we validate the token, we don't present that problem to
clients. This also shortens the length of a Fernet token.
Change-Id: I674bad86ccc902 7ac3b365c10b3b1 42fc9d73c17
Related-Bug: 1433372
Closes-Bug: 1491926