Skip to content

[HCA DCP] Implement authorization code flow with Azul for HCA DCP dev #4805

@frano-m

Description

@frano-m

Summary

Implement the OAuth 2.0 authorization code flow against Azul's /user/authorize endpoint for HCA DCP dev, mirroring what was done for AnVIL in #4793 / #4796.

This was originally part of the scope of #4793 ("This should be implemented for HCA and AnVIL"); #4796 covered AnVIL only. This ticket tracks the HCA DCP dev half.

Context

Scope

Out of scope

  • HCA DCP prod (and other non-dev HCA envs) — to be tracked separately if/when the flow is rolled out beyond dev

Test plan

Mirror #4796:

  • Login end-to-end on localhost:3000 against HCA DCP dev: POST to /user/authorize returns {access_token, id_token, scope, expires_in, token_type}; profile loads
  • Logout clears state, datasets table reverts to public-only view
  • Inactivity timeout still triggers
  • Terra-side checks (userinfo, ToS, profile) still 200 with the access token

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions