mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Remove production scope when token is refreshed
This commit is contained in:
parent
87808ec9df
commit
b402d14910
@ -656,7 +656,7 @@ public class HandlerUtil {
|
|||||||
public static ProxyResponse getTokenResult(AuthData authData, String keymanagerUrl) throws IOException {
|
public static ProxyResponse getTokenResult(AuthData authData, String keymanagerUrl) throws IOException {
|
||||||
HttpPost tokenEndpoint = new HttpPost(keymanagerUrl + HandlerConstants.TOKEN_ENDPOINT);
|
HttpPost tokenEndpoint = new HttpPost(keymanagerUrl + HandlerConstants.TOKEN_ENDPOINT);
|
||||||
StringEntity tokenEndpointPayload = new StringEntity(
|
StringEntity tokenEndpointPayload = new StringEntity(
|
||||||
"grant_type=refresh_token&refresh_token=" + authData.getRefreshToken() + "&scope=PRODUCTION",
|
"grant_type=refresh_token&refresh_token=" + authData.getRefreshToken(),
|
||||||
ContentType.APPLICATION_FORM_URLENCODED);
|
ContentType.APPLICATION_FORM_URLENCODED);
|
||||||
|
|
||||||
tokenEndpoint.setEntity(tokenEndpointPayload);
|
tokenEndpoint.setEntity(tokenEndpointPayload);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user