Skip to content

Commit

Permalink
Merge pull request #21 from atlanhq/PLT-865-token-exchange-update
Browse files Browse the repository at this point in the history
[ADD] more logs to debug
  • Loading branch information
JhaSwechha committed Mar 8, 2024
2 parents 7d5db54 + 0e23ada commit 18694fe
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
package org.keycloak.admin.client.token;

import javax.ws.rs.client.WebTarget;

import org.jboss.logging.Logger;
import org.jboss.resteasy.client.jaxrs.ResteasyClient;
import org.jboss.resteasy.client.jaxrs.ResteasyWebTarget;
import org.keycloak.admin.client.Config;
Expand All @@ -43,7 +45,7 @@
*/
public class TokenManager {
private static final long DEFAULT_MIN_VALIDITY = 30;

private static final Logger logger = Logger.getLogger(TokenManager.class);
private AccessTokenResponse currentToken;
private long expirationTime;
private long refreshExpirationTime;
Expand Down Expand Up @@ -80,6 +82,7 @@ public synchronized AccessTokenResponse getAccessToken() {
}

public AccessTokenResponse grantToken() {
logger.error("Inside grant token change in token manager");
Form form = new Form().param(GRANT_TYPE, accessTokenGrantType);
if (PASSWORD.equals(accessTokenGrantType)) {
form.param(USERNAME, config.getUsername())
Expand Down

0 comments on commit 18694fe

Please sign in to comment.