Skip to content

Commit 646d18d

Browse files
committed
chore: apply spotless formatting
1 parent 14cf0b1 commit 646d18d

2 files changed

Lines changed: 14 additions & 10 deletions

File tree

‎src/main/java/com/auth0/client/auth/AuthAPI.java‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,10 @@ public class AuthAPI {
6161
private static final String KEY_SUBJECT_TOKEN_TYPE = "subject_token_type";
6262
private static final String KEY_REQUESTED_TOKEN_TYPE = "requested_token_type";
6363
private static final String GRANT_TYPE_FEDERATED_CONNECTION_ACCESS_TOKEN =
64-
"urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token";
65-
private static final String SUBJECT_TOKEN_TYPE_REFRESH_TOKEN =
66-
"urn:ietf:params:oauth:token-type:refresh_token";
64+
"urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token";
65+
private static final String SUBJECT_TOKEN_TYPE_REFRESH_TOKEN = "urn:ietf:params:oauth:token-type:refresh_token";
6766
private static final String REQUESTED_TOKEN_TYPE_FEDERATED_CONNECTION_ACCESS_TOKEN =
68-
"http://auth0.com/oauth/token-type/federated-connection-access-token";
67+
"http://auth0.com/oauth/token-type/federated-connection-access-token";
6968
private static final String PATH_OAUTH = "oauth";
7069
private static final String PATH_TOKEN = "token";
7170
private static final String PATH_DBCONNECTIONS = "dbconnections";

‎src/test/java/com/auth0/client/auth/AuthAPITest.java‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,14 +1066,19 @@ public void shouldCreateGetTokenForConnectionRequest() throws Exception {
10661066
assertThat(recordedRequest, hasHeader("Content-Type", "application/json"));
10671067

10681068
Map<String, Object> body = bodyFromRequest(recordedRequest);
1069-
assertThat(body, hasEntry("grant_type",
1070-
"urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token"));
1069+
assertThat(
1070+
body,
1071+
hasEntry(
1072+
"grant_type",
1073+
"urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token"));
10711074
assertThat(body, hasEntry("client_id", CLIENT_ID));
10721075
assertThat(body, hasEntry("client_secret", CLIENT_SECRET));
10731076
assertThat(body, hasEntry("subject_token", "test-refresh-token"));
10741077
assertThat(body, hasEntry("subject_token_type", "urn:ietf:params:oauth:token-type:refresh_token"));
1075-
assertThat(body, hasEntry("requested_token_type",
1076-
"http://auth0.com/oauth/token-type/federated-connection-access-token"));
1078+
assertThat(
1079+
body,
1080+
hasEntry(
1081+
"requested_token_type", "http://auth0.com/oauth/token-type/federated-connection-access-token"));
10771082
assertThat(body, hasEntry("connection", "google-oauth2"));
10781083
assertThat(body, not(hasKey("login_hint")));
10791084

@@ -1083,8 +1088,8 @@ public void shouldCreateGetTokenForConnectionRequest() throws Exception {
10831088

10841089
@Test
10851090
public void shouldCreateGetTokenForConnectionRequestWithLoginHint() throws Exception {
1086-
TokenRequest request = api.getTokenForConnection("google-oauth2", "test-refresh-token")
1087-
.setLoginHint("google-user-id");
1091+
TokenRequest request =
1092+
api.getTokenForConnection("google-oauth2", "test-refresh-token").setLoginHint("google-user-id");
10881093
assertThat(request, is(notNullValue()));
10891094

10901095
server.jsonResponse(AUTH_TOKENS, 200);

0 commit comments

Comments
 (0)