Possible client enumeration in the authorization endpoint
Closes #12164
This commit is contained in:
parent
eb1f31e9dd
commit
ee2c5391bd
2 changed files with 2 additions and 2 deletions
|
@ -230,7 +230,7 @@ public class AuthorizationEndpoint extends AuthorizationEndpointBase {
|
|||
client = realm.getClientByClientId(clientId);
|
||||
if (client == null) {
|
||||
event.error(Errors.CLIENT_NOT_FOUND);
|
||||
throw new ErrorPageException(session, authenticationSession, Response.Status.BAD_REQUEST, Messages.CLIENT_NOT_FOUND);
|
||||
throw new ErrorPageException(session, authenticationSession, Response.Status.BAD_REQUEST, Messages.INVALID_PARAMETER, OIDCLoginProtocol.REDIRECT_URI_PARAM);
|
||||
}
|
||||
|
||||
if (!client.isEnabled()) {
|
||||
|
|
|
@ -182,7 +182,7 @@ public class UncaughtErrorPageTest extends AbstractKeycloakTest {
|
|||
oauth.openLoginForm();
|
||||
|
||||
assertTrue(errorPage.isCurrent());
|
||||
assertEquals("Client not found.", errorPage.getError());
|
||||
assertEquals("Invalid parameter: redirect_uri", errorPage.getError());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in a new issue