-
-
Notifications
You must be signed in to change notification settings - Fork 600
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
Add constraint for private claim validation #827
Add constraint for private claim validation #827
Conversation
@Ocramius https://github.com/lcobucci/jwt/runs/5749877948?check_suite_focus=true#step:4:250
Why adding a method to an interface should be considered a BC Break? |
Adding new methods to an interface requires implementation of it in every class implementing the interface. This is incompatible with "I just update and everything works". :) |
Ok, now I see the need for https://wiki.php.net/rfc/sealed_classes as in this context |
@james-bw have you thought about that? This PR does NOT add a safe way to perform hash comparison. |
Also, you can run |
I did not. I am not aware of how === leads to a timing attack. I'll have to investigate further. ... OK I understand the timing attack now, and understand why === is not to be used for cryptographic stuff. However, custom claim validation is no different to existing code:
I think this validation should be consistent. |
I'm developing on Windows/git bash, so don't have make natively. I've been trying to get my IDE working with the equivalent tests. At this stage I'm about to walk away and leave you to it, I was just trying to help with a quick win and this is turning into ben hur. |
efc1328
to
6709e42
Compare
6709e42
to
817f241
Compare
Re: #826