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
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.
Copy file name to clipboardExpand all lines: aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/jaxrs/AwsProxySecurityContext.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ public Principal getUserPrincipal() {
Copy file name to clipboardExpand all lines: aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/model/CognitoAuthorizerClaims.java
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ public class CognitoAuthorizerClaims {
59
59
privateStringexp;
60
60
privateStringiat;
61
61
62
-
privateStringgetSubject() { returnthis.subject; }
62
+
publicStringgetSubject() { returnthis.subject; }
63
63
64
64
publicvoidsetSubject(Stringsubject) {
65
65
this.subject = subject;
@@ -145,6 +145,12 @@ public void setExp(String expiration) {
145
145
this.exp = expiration;
146
146
}
147
147
148
+
149
+
/**
150
+
* Returns the expiration time for the token as a <code>ZonedDateTime</code> from the <code>exp</code> property
151
+
* of the token.
152
+
* @return The parsed expiration time for the token.
0 commit comments