Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions oidc_extension_callback.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,22 @@ Resources:
//Put your commands here
var responseBody = {
"commands": [{
"type": "com.okta.tokens.access_token.patch",
"type": "com.okta.access.patch",
"value": [{
"op": "add",
"path": "/claims/guid",
"value": "F0384685-F87D-474B-848D-2058AC5655A7"
}, {
"op": "replace",
"path": "/lifetime",
"value": {
"expiration": 3600
}
"path": "token/lifetime/expiration",
"value": "expiration": 3600
}]
},
{
"type": "com.okta.tokens.refresh_token.patch",
"type": "com.okta.tokens.refresh_token.patch", // Is this still supported?
"value": [{
"op": "replace",
"path": "/lifetime/window",
"path": "token/lifetime/window",
"value": 75000
}]
}
Expand All @@ -61,7 +59,7 @@ Resources:
FunctionName: CommandsLambda
Handler: index.handler
Role: !GetAtt 'LambdaExecutionRole.Arn'
Runtime: nodejs6.10
Runtime: nodejs8.10
LambdaExecutionRole:
Type: AWS::IAM::Role
Properties:
Expand Down