Skip to content

Commit 13ae11e

Browse files
marcelocamanhoostrya
authored andcommitted
fix formatting
Signed-off-by: marcelocamanho <[email protected]>
1 parent 651ab16 commit 13ae11e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mock/src/main/java/com/tngtech/keycloakmock/impl/handler/TokenRoute.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,15 @@ private void handlePasswordFlow(RoutingContext routingContext) {
120120
private void handleClientCredentialsFlow(RoutingContext routingContext) {
121121
String clientId = routingContext.request().getFormAttribute("client_id");
122122
String password = routingContext.request().getFormAttribute("client_secret");
123-
boolean formBasedAuth = clientId != null && !clientId.isEmpty() && password != null && !password.isEmpty();
123+
boolean formBasedAuth =
124+
clientId != null && !clientId.isEmpty() && password != null && !password.isEmpty();
124125
final User user = routingContext.user();
125126
if (user == null && !formBasedAuth) {
126127
routingContext.fail(401);
127128
return;
128129
}
129130

130-
//if not form based, try using user (BASIC auth or custom)
131+
// if not form based, try using user (BASIC auth or custom)
131132
if (!formBasedAuth) {
132133
clientId = routingContext.user().get("username");
133134
// Password is a list of roles

0 commit comments

Comments
 (0)