rimosso header
This commit is contained in:
parent
7c1597d479
commit
33a22f9448
|
@ -218,10 +218,11 @@ public class OpenIdConnectRESTHelper {
|
|||
logger.info("Queried exchangeToken for context " + audience);
|
||||
|
||||
Map<String, List<String>> params = new HashMap<>();
|
||||
params.put("subject_token", Arrays.asList("authorization"));
|
||||
params.put("grant_type", Arrays.asList("urn:ietf:params:oauth:grant-type:token-exchange"));
|
||||
|
||||
params.put("subject_token", Arrays.asList(authorization));
|
||||
params.put("client_id", Arrays.asList(client_id));
|
||||
params.put("client_secret", Arrays.asList(client_secret));
|
||||
params.put("grant_type", Arrays.asList("urn:ietf:params:oauth:grant-type:token-exchange"));
|
||||
params.put("subject_token_type", Arrays.asList("urn:ietf:params:oauth:token-type:access_token"));
|
||||
params.put("requested_token_type", Arrays.asList("urn:ietf:params:oauth:token-type:access_token"));
|
||||
|
||||
|
@ -250,10 +251,10 @@ public class OpenIdConnectRESTHelper {
|
|||
}
|
||||
|
||||
|
||||
Map<String, String> headers = new HashMap<>();
|
||||
headers.put("X-D4Science-Context", audience);
|
||||
// Map<String, String> headers = new HashMap<>();
|
||||
// headers.put("X-D4Science-Context", audience);
|
||||
|
||||
return performQueryTokenWithPOST(tokenUrl, authorization, params, headers);
|
||||
return performQueryTokenWithPOST(tokenUrl, null, params/*, headers*/);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue