File tree 1 file changed +3
-2
lines changed
mock/src/main/java/com/tngtech/keycloakmock/impl/handler
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -120,14 +120,15 @@ private void handlePasswordFlow(RoutingContext routingContext) {
120
120
private void handleClientCredentialsFlow (RoutingContext routingContext ) {
121
121
String clientId = routingContext .request ().getFormAttribute ("client_id" );
122
122
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 ();
124
125
final User user = routingContext .user ();
125
126
if (user == null && !formBasedAuth ) {
126
127
routingContext .fail (401 );
127
128
return ;
128
129
}
129
130
130
- //if not form based, try using user (BASIC auth or custom)
131
+ // if not form based, try using user (BASIC auth or custom)
131
132
if (!formBasedAuth ) {
132
133
clientId = routingContext .user ().get ("username" );
133
134
// Password is a list of roles
You can’t perform that action at this time.
0 commit comments