From b2142644cc7b83195cefaa565098fb22b8103280 Mon Sep 17 00:00:00 2001 From: hadi Date: Thu, 17 Mar 2022 09:02:14 +0100 Subject: [PATCH] We need to send the authorization code as original as being received --- src/main/actionscript/com/adobe/protocols/oauth2/OAuth2.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/actionscript/com/adobe/protocols/oauth2/OAuth2.as b/src/main/actionscript/com/adobe/protocols/oauth2/OAuth2.as index 92f9942..d036bbf 100644 --- a/src/main/actionscript/com/adobe/protocols/oauth2/OAuth2.as +++ b/src/main/actionscript/com/adobe/protocols/oauth2/OAuth2.as @@ -301,7 +301,7 @@ package com.adobe.protocols.oauth2 // define POST parameters var urlVariables : URLVariables = new URLVariables(); urlVariables.grant_type = OAuth2Const.GRANT_TYPE_AUTHORIZATION_CODE; - urlVariables.code = code; + urlVariables.code = decodeURIComponent(code); urlVariables.redirect_uri = authorizationCodeGrant.redirectUri; urlVariables.client_id = authorizationCodeGrant.clientId; urlVariables.client_secret = authorizationCodeGrant.clientSecret;