From fd7542f23f47cd5a0168c89b86f14b72119e6ae2 Mon Sep 17 00:00:00 2001 From: mikedokta <44243143+mikedokta@users.noreply.github.com> Date: Wed, 19 Jun 2019 12:33:08 -0400 Subject: [PATCH] Updates updated a few of the command types based off of external facing documentation, as well as the node6.1 to node 8.1 Is the refresh token still supported? I couldn't find any docs on it and kept getting errors. --- oidc_extension_callback.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/oidc_extension_callback.yaml b/oidc_extension_callback.yaml index bc284e8..72fb1d6 100644 --- a/oidc_extension_callback.yaml +++ b/oidc_extension_callback.yaml @@ -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 }] } @@ -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: