-
Notifications
You must be signed in to change notification settings - Fork 569
Cognito user pool #25
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
Conversation
Fixed the principal id in the JaxRs security context to read the subject property from the user pools authorizer claims. Fixed a bug in the Claims object (private getSubject method). Added some comments to the `ZonedDateTime` methods in the claims object. This should completely address #24.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, two minor comments.
@JsonProperty(value = "auth_time") | ||
private Long authTime; | ||
private String exp; | ||
private String iat; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Provide friendly names for "exp" and "iat" like you did for the others?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm providing friendly methods to get the parsed ZonedDateTime called getExpiration
and getIssuesAt
, that's why I left the raw fields with the same name as the original data
if (headerValue == null) { | ||
return values; | ||
} | ||
int entryCounter = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used, forgot there from when I was using the counter to name the key if there was no other name specified. Good catch. Removed.
* Removed unused variable * Removed methods parsing issue and expiration time for token * Changed exp and iat getters and setters to friendly names
Merge support for Cognito User Pool authorizers (Issue #24)