-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OAuth2 SSO Login Broken #264
Comments
To-om
added a commit
that referenced
this issue
Aug 12, 2020
nadouani
added a commit
that referenced
this issue
Oct 28, 2020
nadouani
added a commit
that referenced
this issue
Oct 28, 2020
To-om
pushed a commit
that referenced
this issue
Oct 28, 2020
To-om
pushed a commit
that referenced
this issue
Oct 28, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Request Type
Bug
Work Environment
Problem Description
I am setting up SSO login using OAuth2. I am using Keycloak as my IdP. When Cortex tries to exchange a code for a token, Keycloak returns a 400 Bad Request.
[error] o.t.c.s.OAuth2Srv - unexpected response from server: 400 <html><head><title>Error</title></head><body>Bad Request</body></html> [error] o.e.s.a.MultiAuthSrv - Authentication failure org.elastic4play.AuthenticationError: unexpected response from server
Steps to Reproduce
Possible Solutions
From my testing this line appears to be the problem, https://github.com/TheHive-Project/Cortex/blob/master/app/org/thp/cortex/services/OAuth2Srv.scala#L83. I have Hive SSO working and this is the only difference that I can see. Furthermore, when i use postman to send a POST request to the token endpoint with the "Accept: code" header, i get the 400 error. When I remove the Accept header, i receive the proper response.
The text was updated successfully, but these errors were encountered: