Skip to content

Commit

Permalink
Fixed idtoken
Browse files Browse the repository at this point in the history
  • Loading branch information
ericzbeard committed Sep 26, 2024
1 parent 1c49a7a commit e0073cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/webapp/api/resources/jwt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func handleAuth(code string, refresh string) (string, error) {
Username string `json:"username"`
ExpiresIn int64 `json:"expiresIn"`
}{
IDToken: parsed.JwtID(),
IDToken: token.IDToken,
RefreshToken: token.RefreshToken,
Username: strings.TrimPrefix(userName.(string), "AmazonFederate_"),
ExpiresIn: token.ExpiresIn,
Expand Down
6 changes: 4 additions & 2 deletions test/webapp/webapp-pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,8 @@ Resources:
Type: AWS::ApiGateway::Deployment
Properties:
RestApiId: !Ref RestApi
Metadata:
Version: 2
DependsOn:
- TestResourceGet
- TestResourceOptions
Expand Down Expand Up @@ -632,7 +634,7 @@ Resources:
Runtime: provided.al2023
Code:
S3Bucket: rain-artifacts-755952356119-us-east-1
S3Key: 57e79afa01afda8722193a2a89d6186f1c0b4646765fb0813b1379abee5db601
S3Key: de3e8bb0dbe95584f3b0c9f3d2185c58844fb61e06b1a5e99a9abee70d6dfb2f
Role: !GetAtt JwtResourceHandlerRole.Arn
Environment:
Variables:
Expand Down Expand Up @@ -713,7 +715,7 @@ Resources:
Runtime: provided.al2023
Code:
S3Bucket: rain-artifacts-755952356119-us-east-1
S3Key: fd39ad82c0d6d2774a23f35a34467d867cb3deb2d6ab2bc86255b73a95f3f136
S3Key: ab7ab6b0f94893686f3dd31f0a08b83516fbe844d59b4bb45ec8d30a6cb95e80
Role: !GetAtt TestResourceHandlerRole.Arn
Environment:
Variables:
Expand Down
2 changes: 2 additions & 0 deletions test/webapp/webapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ Resources:
UserPoolArn: !Ref UserPoolArn
Overrides:
ApiDeployment:
Metadata:
Version: 2
DependsOn:
- TestResourceGet
- TestResourceOptions
Expand Down

0 comments on commit e0073cd

Please sign in to comment.