-
Notifications
You must be signed in to change notification settings - Fork 13
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
Integrating FusionAuth with TheHive 3.4.2 / OAuth / SSO #620
Comments
Hmmm. I did some googling and found out you were already on this issue: TheHive-Project/TheHive#946 which appears very relevant. It certainly does look like The Hive is not handling the deliver of the authorization code and calling into /oauth2/token to get a valid token. I have not used The Hive before, but that's my high level assessment. One thing you could do is try turning off client authorization for the FusionAuth application. It's |
yep, that's turned off as well :( i should've noted that i have a feeling it's something on the hive side, but wanted to see if there might be something else i'm missing |
The only thing that stands out to me - is the configuration If this is a passport.js OAuth2 strategy, you may be able to extend it to use OpenID Connect. Here is our NodeBB plugin that does something similar using Passport.js. Another option - (not knowing anything about what Hive does with the |
tracking here for v4 |
closing because not an issue with FA, tracking here TheHive-Project/TheHive#1342 and #708 for v3 and v4 |
Integrating FA with TheHive 3.4.2 / OAuth / SSO
Description
Configured TheHive to use FusionAuth for authentication--unsure if issue is on TheHive side or FusionAuth side or if they're just not compatible in current state.
Our application load balancer in AWS sits in front of TheHive and authenticates with FusionAuth, which brings me to this, like it should:
Upon clicking
Sign in with SSO
, it sends a POST to:https://REDACTED/api/ssoLogin
Which sends me to:
https://REDACTED/oauth2/authorize?scope=openid&response_type=code&redirect_uri=https%3A%2F%2FREDACTED%2Findex.html&client_id=REDACTED
Then I am sent here and am staring at the login screen again:
https://REDACTED/index.html?code=SWrlJoiMDSnx7DQyqXofFZ2GMWR6iPSVJ_xo8rWi8Gw&locale=en_US&userState=Authenticated#!/login
And it just keeps coming back to the same screen.
It seems to be successful on the FA side because it should be using the same session/client ID/etc from the load balancer and I get the code above and
userState=Authenticated
in the URL.I get the following in TheHive logs, nothing in FA logs
Hive configuration:
If this looks to be an issue on TheHive side, I will continue troubleshooting on that end. But I'd like to narrow it down if possible.
Other articles suggested there might be an incompatibility with having a # in the redirect from TheHive (it's the default behavior on their platform).
Thank you in advance.
The text was updated successfully, but these errors were encountered: