-
Notifications
You must be signed in to change notification settings - Fork 370
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
maybeAuthId and maybeAuth may be inconsistent #486
Comments
I've actually run into this myself on occasion. I actually try to avoid using |
The problem I've run into was due to a use of |
If we could cache the result of |
That's a good idea. I'd actually like to implement #268 for the 1.2 release. So let's approach this by implementing the caching behavior for |
Now that #268 is solved it should be fairly easy to solve this issue. |
Good point; I've refactored slightly to make this work. Can you review my commit in b5a1d76? |
Looks good, there are just a few places that I think you've used the wrong function. |
It wasn't by mistake: maybeAuthId makes more requirements than maybeAuthIdRaw does. I was playing around with the idea of using DefaultSignatures to solve the problem, and eventually got it working in 7748a19. |
Ok, now I see it. I'd just like to see a big fat warning on |
I don't mind adding the warning, but neither |
Should this ticket be closed? |
Yes, thanks. |
I'd expect the following property
consistent
to always hold.Unfortunately, it may not hold on some corner cases (although not corner enough that they were already seen):
I don't see any way of fixing this bug besides doing a roundtrip to the DB on
maybeAuthId
, but it is not desirable to do so in general. Thoughts?The text was updated successfully, but these errors were encountered: