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

Integration with AAD through env variables doesn't work (missing needed parameter state) #10027

Open
Raphaaaaaugh opened this issue Apr 25, 2024 · 0 comments
Labels

Comments

@Raphaaaaaugh
Copy link

Be informative
DD v. 2.33.5 (release mode)

I built a DefectDojo instance on ECS AWS with one container per component.
As I understand things, the UWSGI component is the one responsible for Azure AD integration.

Bug description

The button for connecting through Azure AD doesn't appear, instead the highlighted message appears at the address https://my-defectdojo/complete/azuread-tenant-oauth2/ (I can't give you the actual address as it contains sensitive data, sorry in advance).

I followed the documentation : https://defectdojo.github.io/django-DefectDojo/integrations/social-authentication/#azure-active-directory and have set 4 environment variables for the UWSGI container which he is properly reading (if that is of any help, I am also using this environment system for the database connection and linking to the celery broker, etc..).

Steps to reproduce
Steps to reproduce the behavior:

  1. Set DD_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_KEY
    DD_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_SECRET
    DD_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_TENANT_ID
    DD_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_ENABLED as environment variables for UWSGI to their values on your end of Azure (True for ENABLED)
  2. Launch the DefectDojo instance
  3. Go to 'https://my-defectdojo/complete/azuread-tenant-oauth2/'
  4. See error

Deployment method (select with an X)

  • [ X] Docker

Logs from uwsgi
GET /complete/azuread-tenant-oauth2/ => generated 0 bytes in 84 msecs (HTTP/1.1 302) 9 headers in 473 bytes (1 switches on core 1)

Screenshots
image

Please let me know if you have any idea of how to fix this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant