Skip to content

Commit

Permalink
Catalog tests: disable token refresh (#8786)
Browse files Browse the repository at this point in the history
  • Loading branch information
adutra authored Jun 11, 2024
1 parent c41611a commit 28782c5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ protected Map<String, String> catalogOptions() {
Map<String, String> options = new HashMap<>();
options.put(OAuth2Properties.SCOPE, "email");
options.put(OAuth2Properties.TOKEN, accessToken.getPayload());
options.put(OAuth2Properties.TOKEN_REFRESH_ENABLED, "false");
return options;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ protected Map<String, String> catalogOptions() {
Map<String, String> options = new HashMap<>();
options.put(OAuth2Properties.SCOPE, "email");
options.put(OAuth2Properties.TOKEN, accessToken.getPayload());
options.put(OAuth2Properties.TOKEN_REFRESH_ENABLED, "false");
return options;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ protected Map<String, String> catalogOptions() {
options.put(OAuth2Properties.SCOPE, "email");
options.put(OAuth2Properties.OAUTH2_SERVER_URI, tokenEndpoint.toString());
options.put(OAuth2Properties.CREDENTIAL, clientId + ":" + clientSecret);
options.put(OAuth2Properties.TOKEN_REFRESH_ENABLED, "false");
return options;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ protected Map<String, String> catalogOptions() {
options.put(OAuth2Properties.SCOPE, "email");
options.put(OAuth2Properties.OAUTH2_SERVER_URI, tokenEndpoint.toString());
options.put(OAuth2Properties.CREDENTIAL, clientId + ":" + clientSecret);
options.put(OAuth2Properties.TOKEN_REFRESH_ENABLED, "false");
return options;
}

Expand Down

0 comments on commit 28782c5

Please sign in to comment.