-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #815 from jonife/iam
Add support for IAM Authorizers in combination with 2.0 payload
- Loading branch information
Showing
3 changed files
with
176 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
...ainer-core/src/main/java/com/amazonaws/serverless/proxy/model/HttpApiV2IamAuthorizer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
package com.amazonaws.serverless.proxy.model; | ||
|
||
public class HttpApiV2IamAuthorizer { | ||
public String accessKey; | ||
public String accountId; | ||
public String callerId; | ||
public String cognitoIdentity; | ||
public String principalOrgId; | ||
public String userArn; | ||
public String userId; | ||
|
||
public String getAccessKey() { | ||
return accessKey; | ||
} | ||
|
||
public String getAccountId() { | ||
return accountId; | ||
} | ||
|
||
public String getCallerId() { | ||
return callerId; | ||
} | ||
|
||
public String getCognitoIdentity() { | ||
return cognitoIdentity; | ||
} | ||
|
||
public String getPrincipalOrgId() { | ||
return principalOrgId; | ||
} | ||
|
||
public String getUserArn() { | ||
return userArn; | ||
} | ||
|
||
public String getUserId() { | ||
return userId; | ||
} | ||
|
||
public void setAccessKey(String accessKey) { | ||
this.accessKey = accessKey; | ||
} | ||
|
||
public void setAccountId(String accountId) { | ||
this.accountId = accountId; | ||
} | ||
|
||
public void setCallerId(String callerId) { | ||
this.callerId = callerId; | ||
} | ||
|
||
public void setCognitoIdentity(String cognitoIdentity) { | ||
this.cognitoIdentity = cognitoIdentity; | ||
} | ||
|
||
public void setPrincipalOrgId(String principalOrgId) { | ||
this.principalOrgId = principalOrgId; | ||
} | ||
|
||
public void setUserArn(String userArn) { | ||
this.userArn = userArn; | ||
} | ||
|
||
public void setUserId(String userId) { | ||
this.userId = userId; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters