You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a method to verify if a claim is present, regardless of its value #360
I'd like to be able to verify that certain claims are present on a JWT, but I don't want have to limit its value.
Describe the ideal solution
A Verification method along the lines of withClaim(String name) which simply ensures the claim is present. Additionally withClaim(String name, Type type) which validates the claim is present and assignable to type would be nice.
Alternatives and current work-arounds
I don't have any work around currently, especially since the implementing class is final. Alternative names for the proposed method could be hasClaim, isPresent, requireClaim, etc, might make it clearer that the method is different to the other withClaims. Not sure if this is preferred vs sticking with a consistent name.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇♂️
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇♂️
The ability to verify a claim's presence regardless of value has been added in 3.11.0. If there is still demand to verify a claim by presence and type, please open a new issue so we can evaluate and discuss. Thanks!
Activity
stale commentedon May 12, 2020
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇♂️
lbalmaceda commentedon May 14, 2020
Tracking this internally on
SDK-1416stale commentedon Aug 13, 2020
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇♂️
jimmyjames commentedon Sep 28, 2020
The ability to verify a claim's presence regardless of value has been added in 3.11.0. If there is still demand to verify a claim by presence and type, please open a new issue so we can evaluate and discuss. Thanks!