From 607a16ff807bbb8dec9b01b555f621631a509d74 Mon Sep 17 00:00:00 2001 From: Yuriy Movchan Date: Fri, 20 Sep 2024 14:52:43 +0300 Subject: [PATCH] Sg fix api (#9552) * feat(jans-auth): update SG script to conform API Signed-off-by: Yuriy Movchan * feat(jans-auth): update SG script to conform API Signed-off-by: Yuriy Movchan * feat(jans-auth): update SG script to conform API Signed-off-by: Yuriy Movchan * feat(jans-auth): update SG script to conform API Signed-off-by: Yuriy Movchan --------- Signed-off-by: Yuriy Movchan --- .../SuperGluuExternalAuthenticator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/script-catalog/person_authentication/super-gluu-external-authenticator/SuperGluuExternalAuthenticator.py b/docs/script-catalog/person_authentication/super-gluu-external-authenticator/SuperGluuExternalAuthenticator.py index c97486c2d1a..9d1f4db0b01 100644 --- a/docs/script-catalog/person_authentication/super-gluu-external-authenticator/SuperGluuExternalAuthenticator.py +++ b/docs/script-catalog/person_authentication/super-gluu-external-authenticator/SuperGluuExternalAuthenticator.py @@ -1107,7 +1107,7 @@ def getAccessTokenJansServer(self, asBaseUrl, asClientId, asClientSecret): try: httpService = CdiUtil.bean(HttpService2) - resultResponse = httpService.executePost(endpointUrl, None, headers, body, ContentType.APPLICATION_JSON, None) + resultResponse = httpService.executePost(endpointUrl, authData, headers, body, ContentType.APPLICATION_FORM_URLENCODED, None) httpResponse = resultResponse.getHttpResponse() httpResponseStatusCode = httpResponse.getStatusLine().getStatusCode() print "Super-Gluu. Scan. Get token response status code: %s" % httpResponseStatusCode