Skip to content

Conversation

@g-saracca
Copy link
Contributor

@g-saracca g-saracca commented Nov 25, 2024

What this PR does / why we need it:

Adds OIDC Bearer Token Auth mechanism based on the PoC design.
Also adds a RegisterUser use case based on the new api endpoint added in IQSS/dataverse#10972

Which issue(s) this PR closes:

Suggestions on how to test this:

This issue just adds a new mechanism to js-dataverse use cases, there is a unit test to check that the bearer token is being sent correctly in the Authorization header when configured with a bearer token.
Also a unit test for the RegisterUser use case has been added, more in-depth testing will be done on the SPA integration.

@g-saracca g-saracca added Size: 3 A percentage of a sprint. 2.1 hours. GREI Re-arch GREI re-architecture-related Original size: 3 SPA.Q4.4 OIDC login + API authentication FY25 Sprint 11 FY25 Sprint 11 (2024-11-20 - 2024-12-04) labels Nov 25, 2024
@g-saracca g-saracca self-assigned this Nov 29, 2024
@g-saracca g-saracca removed their assignment Nov 29, 2024
@ekraffmiller ekraffmiller self-assigned this Dec 2, 2024
Copy link
Contributor

@ekraffmiller ekraffmiller left a comment

Choose a reason for hiding this comment

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

Looks good! I just have a question about setting withCredentials

@g-saracca g-saracca assigned g-saracca and unassigned g-saracca Dec 3, 2024
Copy link
Contributor

@ekraffmiller ekraffmiller left a comment

Choose a reason for hiding this comment

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

Looks good!

@cmbz cmbz added the FY25 Sprint 12 FY25 Sprint 12 (2024-12-04 - 2024-12-18) label Dec 5, 2024
@ofahimIQSS ofahimIQSS self-assigned this Dec 18, 2024
@ofahimIQSS
Copy link
Contributor

Tests are passing - merging PR

@ofahimIQSS ofahimIQSS merged commit c420849 into develop Dec 19, 2024
5 checks passed
@ofahimIQSS ofahimIQSS deleted the feat/206-oidc-bearer-token-mechanism branch December 19, 2024 17:19
@ofahimIQSS ofahimIQSS removed their assignment Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY25 Sprint 11 FY25 Sprint 11 (2024-11-20 - 2024-12-04) FY25 Sprint 12 FY25 Sprint 12 (2024-12-04 - 2024-12-18) GREI Re-arch GREI re-architecture-related Original size: 3 Size: 3 A percentage of a sprint. 2.1 hours. SPA.Q4.4 OIDC login + API authentication

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add OIDC Bearer Token Auth mechanism based on the PoC design

5 participants