-
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 4.0.0-0.3RC3 / OAuth / SSO #708
Comments
Scenario 1: Clicking the button
Scenario 2: Opening /oauth2/authorize in new tab
|
TheHive config:
Additionally, we have FusionAuth integrated as SSO for other platforms with the same FA application/client ID/secret (ex: RocketChat) and it works fine. |
@shortstack , can you please share your FusionAuth application config (redacted as needed)? Also, which version of FusionAuth are you running? |
@mooreds which part of the app configuration would be most helpful? upgraded to 1.17.4 this morning, but same everything |
I'm unsure exactly which part would be helpful, to be honest. Do you mind providing the entire config as json? |
|
I confess, I'm at a loss. Short of downloading and installing The Hive and playing around with the SSO integration, I'm not sure what the next steps would be. I'll watch TheHive-Project/TheHive#1342 as I see there's some activity over there as well. |
the fusionauth docs say that when it returns a 200, that it's returning the auth form "the response will contain an html form to collect login credentials" but i don't understand why it's pulling back the 200 from the SSO button vs a 302 |
To confirm, this is what you're seeing:
After this (if correct) what happens? From your debug output:
It seems to indicate that it is redirecting to itself instead of FusionAuth when you click the button. |
scenario 1: button
scenario 2: open the
|
@robotdan i have a screen recording if i can share this somehow--best method for private link for you? |
Sent you an email that you can respond to with a link. Thanks. |
A HAR file might be really helpful for this as well since it seems to be all happening in the browser. |
I've recreated most I believe (some of my notes are over here : TheHive-Project/TheHive#1342 ). I get an I never see a request to the Token endpoint, I think I'd have to dig through code over in the TheHive GitHub project to see what they are trying to do in the callback to get much further. |
yep, i get a 204 followed by the 200, instead of a 302 back to thehive/api/ssoLogin |
i will get an HAR file soon |
HAR file emailed to @robotdan |
i added the CORS everywhere plugin in firefox and that did nothing. additonally, i don't see any CORS errors/messages in the developer tools console. |
Re: #708 (comment) Is that a response from TheHive team, or from yours? It seems to indicate there is possibly an CORS issue in TheHive? |
this morning has been a rollercoaster of emotions. working with one of their devs this morning. they said it was a known CORS issue (screenshot above) and that they fixed it in RC2 (i wish this had been mentioned days ago). i rolled back to RC2, and ran into another issue where it was not redirecting as expected (team says that /api/ssoLogin is supposed to redirect to the frontend and it was not). i was working off a hive config they provided, which turned out to be incorrect. i made a change to the config to use the correct frontend/index.html redirectUri... and it is now working. |
That is great! Can you share your configuration and version of Hive? (assuming RC2?) |
one caveat, while auto user creation worked in RC3, it doesn't work in RC2 :( which means we'll have to programmatically create the users in thehive and assign them to the correct org when we create them in fusionauth. but better than it was yesterday. thanks so much for your help and extra sets of eyeballs.
|
Integrating FusionAuth with TheHive 4.0.0-0.3RC3 / OAuth / SSO
Description
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Click button, auth with FA, log in
Screenshots
Platform
Additional context
If I click the login with SSO button on TheHive to auth with FusionAuth via SSO/OAuth, instead of getting a 302 to redirect me to

https://thehive/api/ssoLogin
, I get a 200 and I remain on the login page. Behavior explained here:If I explicitly go to
https://fusionauth/oauth2/authorize?state=319830de-b9f3-4d3b-ae6c-50798a805da0&scope=openid&redirect_uri=https://thehive/api/ssoLogin/etceteraetcetera
in a new tab, I get a 302 and I am successfully taken tohttps://thehive/api/ssoLogin
and logged in.Once again, I'm not sure if this is an issue with FA or an issue in the process within TheHive. Their devs say they have it working in a sandbox environment but they also have them both (FA and TheHive) running locally on the same system
The text was updated successfully, but these errors were encountered: