-
Notifications
You must be signed in to change notification settings - Fork 6k
Improve ClaimAccessor getClaimAsInstant #5250
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
Comments
* Update GAE 1.9.63 Fixes: spring-projectsgh-5277 * Update Spring Boot 2.0.1.RELEASE Fixes: spring-projectsgh-5278 # Conflicts: # gradle.properties * Update to nimbus-jose-jwt:5.10 Fixes: spring-projectsgh-5279 * Update to oauth2-oidc-sdk:5.61 Fixes: spring-projectsgh-5280 * Update to javax.servlet-api:4.0.1 Fixes: spring-projectsgh-5281 * Update to aspectj 1.9.1 Fixes: spring-projectsgh-5282 * Update to htmlunit:2.30 Fixes: spring-projectsgh-5283 * Update to mockito-core:2.18.3 Fixes: spring-projectsgh-5284 * Update to selenium 3.11.0 Fixes: spring-projectsgh-5289 * Update to Spring Framework 5.0.6.BUILD-SNAPSHOT Issue: spring-projectsgh-5290 # Conflicts: # gradle/dependency-management.gradle * Add update-dependencies.sh Fixes: spring-projectsgh-5276 * Improve PasswordEncoder deprecated notices Fixes: spring-projectsgh-5296 * NimbusUserInfoResponseClient sets Accept header to JSON Fixes spring-projectsgh-5294 * Add test NimbusUserInfoResponseClient sets Accept header to JSON Issue spring-projectsgh-5294 * Improve ClaimAccessor getClaimAsInstant Fixes spring-projectsgh-5250 * Fix incorrect explanation for customizing query on JdbcDaoImpl
I'm getting a similar error when the claims value is a
|
@sirianni As per the spec, in 5.1. Standard Claims:
Looks like |
Summary
ClaimAccessor#getClaimAsInstant
attempts to coerce a claim into an Instant, so long as it is of typeLong
,Date
, orInstant
.Actual Behavior
ClaimAccessor#getClaimAsInstant
fails when the claim is of typeInteger
Expected Behavior
ClaimAccessor#getClaimAsInstant
should be resilient to all whole-number data types, but at least those that extend fromNumber
.Version
5.1.0.BUILD-SNAPSHOT
The text was updated successfully, but these errors were encountered: