@@ -29,8 +29,6 @@ public abstract class OpenIdTokenController {
2929 public final ApiConnectionInfo retrieveTokenUrl (ApiConnectionInfo apiConnectionInfo , SslSocketData sslSocketData ) throws IOException {
3030 if (tokenEndpoint == null ) {
3131 String wellKnownEndpoint = retrieveWellKnownEndpoint (apiConnectionInfo )
32- // stop gap until source of information is corrected
33- .replace ("identityc" ,"identity" );
3432
3533 ApiConnectionInfo wellKnownApiConnectionInfo = new ApiConnectionInfoBuilder (wellKnownEndpoint )
3634 .withSslSocketData (sslSocketData )
@@ -40,8 +38,6 @@ public final ApiConnectionInfo retrieveTokenUrl(ApiConnectionInfo apiConnectionI
4038 .withMediaType (ACCEPT_HEADER );
4139 try (HttpRequestResponse response = executor .execute ()) {
4240 tokenEndpoint = OAuth2ObjectMapper .getValueForKey (response .getBody (), TOKEN_ENDPOINT_KEY )
43- // stop gap until source of information is corrected
44- .replace ("identityc" ,"identity" );
4541 }
4642 }
4743 return new ApiConnectionInfoBuilder (tokenEndpoint )
@@ -53,18 +49,14 @@ public final ApiConnectionInfo retrieveAuthUrl(ApiConnectionInfo apiConnectionIn
5349
5450 if (authEndpoint == null ) {
5551 String wellKnownEndpoint = retrieveWellKnownEndpoint (apiConnectionInfo )
56- // stop gap until source of information is corrected
57- .replace ("identityc" ,"identity" );
5852 ApiConnectionInfo wellKnownApiConnectionInfo = new ApiConnectionInfoBuilder (wellKnownEndpoint )
5953 .withSslSocketData (sslSocketData )
6054 .build ();
6155 HttpRequestExecutor executor = new HttpRequestBuilderImpl (wellKnownApiConnectionInfo )
6256 .get ()
6357 .withMediaType (ACCEPT_HEADER );
6458 try (HttpRequestResponse response = executor .execute ()) {
65- authEndpoint = OAuth2ObjectMapper .getValueForKey (response .getBody (), AUTH_ENDPOINT_KEY )
66- // stop gap until source of information is corrected
67- .replace ("identityc" ,"identity" );
59+ authEndpoint = OAuth2ObjectMapper .getValueForKey (response .getBody (), AUTH_ENDPOINT_KEY );
6860 }
6961 }
7062 return new ApiConnectionInfoBuilder (authEndpoint )
0 commit comments