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

Fix oauth2 forwarding #77

Merged

Conversation

michaeljmarshall
Copy link
Member

@michaeljmarshall michaeljmarshall commented Jun 24, 2022

Motivation

In testing 2.1.1, I found that the forwarding did not work correctly when using auth_mode: openidconnect. Specifically, loading the main page would result in loading keycloak. These changes improve the openidconnect auth mode and ensure that the other auth modes still work.

Changes

  • Simplify the oauth2 configuration. Since we haven't actually released any of these configurations, I am changing them now.
  • Add the openid scope to the browser's request, since it is expected by some providers, like Okta.
  • Load only one of the /api/v1/auth/token endpoints.

Verifying the change

I verified these changes with all 4 auth modes an EKS cluster and against the DataStax Pulsar Helm Chart.

@michaeljmarshall michaeljmarshall merged commit 636d1ba into datastax:master Jun 24, 2022
@michaeljmarshall michaeljmarshall deleted the fix-openid-connect branch June 24, 2022 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant