Skip to content
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

Bug: Unable to log in after configuring SSO #891

Closed
5 tasks
sunesra opened this issue Sep 30, 2024 · 14 comments
Closed
5 tasks

Bug: Unable to log in after configuring SSO #891

sunesra opened this issue Sep 30, 2024 · 14 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists needs more info This issue requires more information triage This issue requires triaging

Comments

@sunesra
Copy link

sunesra commented Sep 30, 2024

Description:

A clear and concise description of the bug you're encountering.

Are you intending to fix this bug?

Please indicate "yes" or "no".

Component(s) Affected:

  • UI
  • API
  • Neo4j
  • PostgreSQL
  • Data Collector (SharpHound, AzureHound)
  • Other (tooling, documentation, etc.)

Steps to Reproduce:

  1. Go to [specific page or endpoint]
  2. Click on [button/element/etc.]
  3. Enter [input/data]
  4. See error at [this point]

Expected Behavior:

A description of what you expected to happen.

Actual Behavior:

A description of what actually happened.

Screenshots/Code Snippets/Sample Files:

If applicable, add screenshots, relevant code snippets, or sample files that help illustrate the issue.

Environment Information:

BloodHound: [BloodHound version or revision]

Collector: [SharpHound version / AzureHound version]

OS: [your OS and version]

Browser (if UI related): [browser name and version]

Node.js (if UI related: [Node.js version]

Go (if API related): [Go version]

Database (if persistence related): [Neo4j version / PostgreSQL version]

Docker (if using Docker): [docker version]

Additional Information:

Any additional context or information that might be helpful in understanding and diagnosing the issue.

Potential Solution (optional):

If you have any ideas about what might be causing the issue or how it could be fixed, you can share them here.

Related Issues:

If you've found related issues in the project's issue tracker, mention them here.

Contributor Checklist:

  • I have searched the issue tracker to ensure this bug hasn't been reported before or is not already being addressed.
  • I have provided clear steps to reproduce the issue.
  • I have included relevant environment information details.
  • I have attached necessary supporting documents.
  • I have checked that any JSON files I am attempting to upload to BloodHound are valid.
@sunesra sunesra added bug Something isn't working triage This issue requires triaging labels Sep 30, 2024
@sunesra
Copy link
Author

sunesra commented Sep 30, 2024

{"http_status":401,"timestamp":"2024-09-30T15:39:17.865591119Z","request_id":"0009dd20-7f2e-4ff8-b90e-815e80e15e11","errors":[{"context":"","message":"authentication is invalid"}]}

@sunesra sunesra changed the title Bug: After configuring SSO for our bloodhound console, we are getting below error. Bug: After configuring SSO for our bloodhound console, we are getting below error. {"http_status":401,"timestamp":"2024-09-30T15:39:17.865591119Z","request_id":"0009dd20-7f2e-4ff8-b90e-815e80e15e11","errors":[{"context":"","message":"authentication is invalid"}]} Sep 30, 2024
@StephenHinck StephenHinck changed the title Bug: After configuring SSO for our bloodhound console, we are getting below error. {"http_status":401,"timestamp":"2024-09-30T15:39:17.865591119Z","request_id":"0009dd20-7f2e-4ff8-b90e-815e80e15e11","errors":[{"context":"","message":"authentication is invalid"}]} Bug: Unable to log in after configuring SSO Sep 30, 2024
@StephenHinck StephenHinck added the needs more info This issue requires more information label Sep 30, 2024
@StephenHinck
Copy link
Collaborator

Hi @sunesra - can you please provide additional log details? Before the "Authentication is invalid" line, you should see additional information about SAML lookups, identified fields, etc. Please include those in your report. A SAML trace report would also be incredibly helpful to troubleshoot.

@sunesra
Copy link
Author

sunesra commented Oct 1, 2024

I just uploaded Tracer logs.

@StephenHinck
Copy link
Collaborator

Hi @sunesra - those look like the headers in the HTTP calls, however do not include the SAML assertion information. Your API logs will indicate what attributes were parsed from the assertion.

As a general item of information, this page https://support.bloodhoundenterprise.io/hc/en-us/articles/9228122981275-SAML-in-BloodHound is super helpful for configuring SAML. Usually, the problem folks run into is not including one of the two supported attributes in the assertion (http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress OR urn:oid:0.9.2342.19200300.100.1.3), and mapping the user's email address to that field. You should then match that to the email field in BloodHound.

@sunesra
Copy link
Author

sunesra commented Oct 3, 2024

Hello,
Our application is not even redirecting the user to the SSO, it immediately fails with "authentication is invalid" error. So at this point, the issue is not because of Required SAML Attributes.
We want user to be redirected to SSO authentication page first.

Can you guide us what steps we can take to move this further?

@sunesra
Copy link
Author

sunesra commented Oct 3, 2024

We are having similar error message (#83)

@StephenHinck
Copy link
Collaborator

@sunesra would you please provide the API logs - if you don't have an active terminal, docker compose logs (or docker compose logs -f to follow them while you attempt to authenticate) will display them for you.

One note based on a hunch from what others have experienced in the past, make sure you've granted appropriate system resources to Docker to run BloodHound: https://github.com/SpecterOps/BloodHound?tab=readme-ov-file#system-requirements. Error 137 from Docker indicates that the container attempted to use more memory than was allocated, and this commonly happens on authentication (due to the Argon2 key derivation algorithm used by BloodHound).

@sunesra
Copy link
Author

sunesra commented Oct 3, 2024

image (2)

@sunesra
Copy link
Author

sunesra commented Oct 3, 2024

Logs provided in the SS

@StephenHinck StephenHinck added the duplicate This issue or pull request already exists label Oct 4, 2024
@StephenHinck
Copy link
Collaborator

Closing this as a duplicate of #83

@StephenHinck
Copy link
Collaborator

We will have improved documentation for deploying SAML coming out shortly. Our team has an ongoing effort in the area of SSO and will include that documentation (and review #83) as part of that effort.

@sunesra
Copy link
Author

sunesra commented Oct 7, 2024

Hello Stephen Hinck,

You mean that we have some bug on BloodHound side?

@StephenHinck
Copy link
Collaborator

@sunesra - I closed this issue as, from what I can tell from your logs, it's a duplicate reporting of #83 where you're not clear how to configure the certificates for SAML and getting an error for the product's inability to decode the certificate provided. Our team is working on adding OIDC support and I have asked them to document the SAML deployment as part of this effort. They will close out #83 when that's completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists needs more info This issue requires more information triage This issue requires triaging
Projects
None yet
Development

No branches or pull requests

2 participants