Temporary disabling exchange for offline token since with new keycloak original token should be issued with `offline` scope to work and has still to be inroduced the possibility to do it
This commit is contained in:
parent
899cf13afd
commit
eabd708631
|
@ -720,22 +720,22 @@ public class DefaultKeycloakClient implements KeycloakClient {
|
||||||
null);
|
null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
// @Override
|
||||||
public TokenResponse exchangeTokenForOfflineToken(String context, String oidcAccessToken, String clientId,
|
// public TokenResponse exchangeTokenForOfflineToken(String context, String oidcAccessToken, String clientId,
|
||||||
String clientSecret, String audience) throws KeycloakClientException {
|
// String clientSecret, String audience) throws KeycloakClientException {
|
||||||
|
//
|
||||||
|
// return exchangeTokenForOfflineToken(getTokenEndpointURL(getRealmBaseURL(context)), oidcAccessToken, clientId,
|
||||||
|
// clientSecret, audience);
|
||||||
|
// }
|
||||||
|
|
||||||
return exchangeTokenForOfflineToken(getTokenEndpointURL(getRealmBaseURL(context)), oidcAccessToken, clientId,
|
// @Override
|
||||||
clientSecret, audience);
|
// public TokenResponse exchangeTokenForOfflineToken(URL tokenURL, String oidcAccessToken, String clientId,
|
||||||
}
|
// String clientSecret, String audience) throws IllegalArgumentException, KeycloakClientException {
|
||||||
|
//
|
||||||
@Override
|
// // ModelUtils.getAccessTokenFrom(oidcTokenResponse).getScope().
|
||||||
public TokenResponse exchangeTokenForOfflineToken(URL tokenURL, String oidcAccessToken, String clientId,
|
// return exchangeToken(tokenURL, oidcAccessToken, clientId, clientSecret, audience, REFRESH_TOKEN_TOKEN_TYPE,
|
||||||
String clientSecret, String audience) throws IllegalArgumentException, KeycloakClientException {
|
// OFFLINE_ACCESS_SCOPE);
|
||||||
|
// }
|
||||||
// ModelUtils.getAccessTokenFrom(oidcTokenResponse).getScope().
|
|
||||||
return exchangeToken(tokenURL, oidcAccessToken, clientId, clientSecret, audience, REFRESH_TOKEN_TOKEN_TYPE,
|
|
||||||
OFFLINE_ACCESS_SCOPE);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Queries from the OIDC server an exchanged token by using provided access token, for the given audience (context),
|
* Queries from the OIDC server an exchanged token by using provided access token, for the given audience (context),
|
||||||
|
|
|
@ -650,8 +650,8 @@ public interface KeycloakClient {
|
||||||
// TokenResponse exchangeTokenForOfflineToken(URL tokenURL, String oidcAccessToken, String clientId,
|
// TokenResponse exchangeTokenForOfflineToken(URL tokenURL, String oidcAccessToken, String clientId,
|
||||||
// String clientSecret, String audience) throws IllegalArgumentException, KeycloakClientException;
|
// String clientSecret, String audience) throws IllegalArgumentException, KeycloakClientException;
|
||||||
|
|
||||||
TokenResponse exchangeTokenForOfflineToken(String context, String oidcAccessToken, String clientId,
|
// TokenResponse exchangeTokenForOfflineToken(String context, String oidcAccessToken, String clientId,
|
||||||
String clientSecret, String audience) throws IllegalArgumentException, KeycloakClientException;
|
// String clientSecret, String audience) throws IllegalArgumentException, KeycloakClientException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Introspects an access token against the Keycloak server.
|
* Introspects an access token against the Keycloak server.
|
||||||
|
|
Loading…
Reference in New Issue