Skip to content

DT-915, DT-3005: Use OIDC client id instead of Google client id#2872

Open
rushtong wants to merge 4 commits intodevelopfrom
gr-DT-3005-use-oidc-client-id
Open

DT-915, DT-3005: Use OIDC client id instead of Google client id#2872
rushtong wants to merge 4 commits intodevelopfrom
gr-DT-3005-use-oidc-client-id

Conversation

@rushtong
Copy link
Copy Markdown
Contributor

@rushtong rushtong commented Apr 22, 2026

Addresses

Summary

This PR updates the swagger auth configuration to use the existing OIDC client id and removes the newly unnecessary Google OAuth configuration information. The original code used the same Google client id in both oauth schemes which was incorrect.

Secondly, we're removing the Google OAuth panel because our UI uses OIDC, not Google, so keeping them consistent will remove confusion between different OIDC/Google token formats.

Depends on https://github.com/broadinstitute/terraform-ap-deployments/pull/2038 which will add the local development url to the list of approved redirect uris.

Follow-on PR to remove the unused configs: https://github.com/broadinstitute/terra-helmfile/pull/6421

New

Screenshot 2026-04-22 at 12 18 56 PM

Old

Top part of the scrollable window:
Screenshot 2026-04-22 at 12 19 19 PM

Bottom part of the scrollable window:
Screenshot 2026-04-22 at 12 20 02 PM


Have you read CONTRIBUTING.md lately? If not, do that first.

  • Label PR with a Jira ticket number and include a link to the ticket
  • Label PR with a security risk modifier [no, low, medium, high]
  • PR describes scope of changes
  • Get a minimum of one thumbs worth of review, preferably two if enough team members are available
  • Get PO sign-off for all non-trivial UI or workflow changes
  • Verify all tests go green
  • Test this change deployed correctly and works on dev environment after deployment

Comment on lines +640 to +643
@Provides
OidcConfiguration providesOidcConfiguration() {
return config.getOidcConfiguration();
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Necessary to support @Inject in SwaggerResource.

@rushtong rushtong marked this pull request as ready for review April 22, 2026 17:38
@rushtong rushtong requested a review from a team as a code owner April 22, 2026 17:38
@rushtong rushtong requested review from Copilot, eweitz and fboulnois and removed request for a team April 22, 2026 17:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aligns the Swagger UI/OpenAPI authentication configuration with the service’s OIDC setup by removing the legacy Google OAuth scheme and switching Swagger to use the OIDC client ID instead.

Changes:

  • Remove the googleoauth security scheme from the OpenAPI spec and Swagger UI auth UX.
  • Replace GoogleOAuth2Config usage with OidcConfiguration for Swagger UI OAuth initialization.
  • Update test configuration and Swagger resource tests accordingly; remove the unused GoogleOAuth2Config configuration class.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/test/resources/consent-config.yml Moves test client id under oidcConfiguration and removes googleAuthentication.
src/test/java/org/broadinstitute/consent/http/resources/SwaggerResourceTest.java Updates SwaggerResource test setup to use OidcConfiguration.
src/main/resources/assets/api-docs.yaml Removes googleoauth security scheme and leaves only oidc.
src/main/java/org/broadinstitute/consent/http/resources/SwaggerResource.java Switches injected config type to OidcConfiguration for Swagger OAuth client ID.
src/main/java/org/broadinstitute/consent/http/configurations/GoogleOAuth2Config.java Deletes now-unused Google OAuth config class.
src/main/java/org/broadinstitute/consent/http/configurations/ConsentConfiguration.java Removes googleAuthentication config property and accessors.
src/main/java/org/broadinstitute/consent/http/ConsentModule.java Removes Google OAuth config provider; adds OIDC config provider for DI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@fboulnois fboulnois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Copy Markdown
Contributor

@otchet-broad otchet-broad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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.

6 participants