Skip to content

Commit

Permalink
make naming better
Browse files Browse the repository at this point in the history
  • Loading branch information
samikshya-db committed Aug 29, 2024
1 parent 020ef4a commit 380b382
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -615,12 +615,12 @@ public boolean isAccountClient() {

public OpenIDConnectEndpoints getOidcEndpoints() throws IOException {
if (discoveryUrl == null) {
return getDefaultOidc();
return fetchDefaultOidcEndpoints();
}
return getOidcFromDiscoveryEndpoint();
return fetchOidcEndpointsFromDiscovery();
}

private OpenIDConnectEndpoints getOidcFromDiscoveryEndpoint() {
private OpenIDConnectEndpoints fetchOidcEndpointsFromDiscovery() {
try {
Request request = new Request("GET", discoveryUrl);
Response resp = getHttpClient().execute(request);
Expand All @@ -633,7 +633,7 @@ private OpenIDConnectEndpoints getOidcFromDiscoveryEndpoint() {
return null;
}

private OpenIDConnectEndpoints getDefaultOidc() throws IOException {
private OpenIDConnectEndpoints fetchDefaultOidcEndpoints() throws IOException {
if (getHost() == null) {
return null;
}
Expand Down

0 comments on commit 380b382

Please sign in to comment.