|
|
|
@ -75,7 +75,7 @@ public class SsoLoginCallbackHandler extends HttpServlet {
|
|
|
|
|
String loginCallbackUrl = iotsCoreUrl + req.getContextPath() + HandlerConstants.SSO_LOGIN_CALLBACK;
|
|
|
|
|
|
|
|
|
|
StringEntity tokenEPPayload = new StringEntity(
|
|
|
|
|
"grant_type=" + HandlerConstants.CODE_GRANT_TYPE + "&code=" + code + "&state=&scope=" + scope +
|
|
|
|
|
"grant_type=" + HandlerConstants.CODE_GRANT_TYPE + "&code=" + code + "&scope=" + scope +
|
|
|
|
|
"&redirect_uri=" + loginCallbackUrl,
|
|
|
|
|
ContentType.APPLICATION_FORM_URLENCODED);
|
|
|
|
|
tokenEndpoint.setEntity(tokenEPPayload);
|
|
|
|
|