Skip to content

Commit

Permalink
Google Java Format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 13, 2024
1 parent d34fb35 commit 6bd46e8
Showing 1 changed file with 10 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,9 @@ private void createAuthorizationServices() {
authConfigBuilder.setConnectionBuilder(InsecureConnectionBuilder.INSTANCE);
authConfigBuilder.setSkipIssuerHttpsCheck(true);
insecureAuthorizationService =
new AuthorizationService(applicationContext, authConfigBuilder.build());
new AuthorizationService(applicationContext, authConfigBuilder.build());
}

private void disposeAuthorizationServices() {
defaultAuthorizationService.dispose();
insecureAuthorizationService.dispose();
Expand Down Expand Up @@ -344,22 +345,18 @@ public void onFetchConfigurationCompleted(
};
if (tokenRequestParameters.discoveryUrl != null) {
AuthorizationServiceConfiguration.fetchFromUrl(
Uri.parse(tokenRequestParameters.discoveryUrl),
callback,
getConnectionBuilder());
Uri.parse(tokenRequestParameters.discoveryUrl), callback, getConnectionBuilder());
} else {
AuthorizationServiceConfiguration.fetchFromIssuer(
Uri.parse(tokenRequestParameters.issuer),
callback,
getConnectionBuilder());
Uri.parse(tokenRequestParameters.issuer), callback, getConnectionBuilder());
}
}
}

private @NonNull ConnectionBuilder getConnectionBuilder() {
return allowInsecureConnections
? InsecureConnectionBuilder.INSTANCE
: DefaultConnectionBuilder.INSTANCE;
? InsecureConnectionBuilder.INSTANCE
: DefaultConnectionBuilder.INSTANCE;
}

private AuthorizationServiceConfiguration processServiceConfigurationParameters(
Expand Down Expand Up @@ -395,14 +392,10 @@ public void onFetchConfigurationCompleted(
};
if (tokenRequestParameters.discoveryUrl != null) {
AuthorizationServiceConfiguration.fetchFromUrl(
Uri.parse(tokenRequestParameters.discoveryUrl),
callback,
getConnectionBuilder());
Uri.parse(tokenRequestParameters.discoveryUrl), callback, getConnectionBuilder());
} else {
AuthorizationServiceConfiguration.fetchFromIssuer(
Uri.parse(tokenRequestParameters.issuer),
callback,
getConnectionBuilder());
Uri.parse(tokenRequestParameters.issuer), callback, getConnectionBuilder());
}
}
}
Expand Down Expand Up @@ -548,14 +541,10 @@ public void onFetchConfigurationCompleted(

if (endSessionRequestParameters.discoveryUrl != null) {
AuthorizationServiceConfiguration.fetchFromUrl(
Uri.parse(endSessionRequestParameters.discoveryUrl),
callback,
getConnectionBuilder());
Uri.parse(endSessionRequestParameters.discoveryUrl), callback, getConnectionBuilder());
} else {
AuthorizationServiceConfiguration.fetchFromIssuer(
Uri.parse(endSessionRequestParameters.issuer),
callback,
getConnectionBuilder());
Uri.parse(endSessionRequestParameters.issuer), callback, getConnectionBuilder());
}
}
}
Expand Down

0 comments on commit 6bd46e8

Please sign in to comment.