I have succesfully used the shared keyrock from filab to let my on web application to authentificate users, using oauth. When I tried it with a second application, I get an error from FILAB web page: "Bad Request" The error occurs after the users logs in. Is there a way to get additional information, what was wrong with the request?
Asked
Active
Viewed 178 times
1 Answers
1
I'm guessing you are using the "authorization code grant" flow defined by the OAuth2 standard and supported by Keyrock. In that scenario, you need to provide three parameters when building the authentication URL:
response_type
must becode
(ortoken
when using the "implicit grant" flow), otherwise IdM will return anunsupported_response_type
error.- If the
client_id
exists, but theredirect_url
doesn't match the one provided when creating the application, then abad request
error will be raised. This error can be raised if theclient_id
is wrong, if theredirect_url
is wrong or if both are wrong. This is your case. - If the
client_id
app doesn't exist, the IdM will return a 404 error page. - If any of these parameters are missing in the request, the IdM will raise an
invalid_request
error.
Except for the error 404, Keyrock seems to follow the OAuth2 protocol.

Álvaro Arranz
- 2,015
- 1
- 13
- 22