IQSS / IQSS/dataverse

Provision a Provider via JVM: provider data is not being added to authenticationproviderrow

Open
#11,090 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature: Superuser Dashboard GREI Re-arch Original size: 30 SPA Type: Bug
Dominant language
Java
Stars
1.1k
Forks
564
Avg merge
2d 2h
Merged PRs (30d)
29

Description

What steps does it take to reproduce the issue?
The issue was encountered in the SPA OIDC integration code: https://github.com/IQSS/dataverse-frontend/issues/565
The easiest way to recreate the issue is to setup the SPA development environment described in issue 565

After running ./run-env.sh 10959-bearer-token-auth-ext, check the Postgres table authenticationproviderrow. It should contain a row for the OIDC provider, but it only has one row, for the builtin user.

  • When does this issue occur?
    Configuring a dataverse for OIDC provider using JVM options

  • Which page(s) does it occurs on?
    The missing data preventing the user from being shown in Admin Dashboard -> Manage Users

  • What happens?

  • To whom does it occur (all users, curators, superusers)?

  • What did you expect to happen?
    a row in the table should exist for the OIDC provider

Which version of Dataverse are you using?
The 10959-bearer-token-auth-ext image

Any related open or closed issues to this bug report?
https://github.com/IQSS/dataverse-frontend/issues/565

Screenshots:

The authenticateduser table, showing an OIDC user successfully registered in the Dataverse:

Screenshot 2024-12-11 at 9 54 56 AM

The oidc user was also added to authenticateduserlookup:

Screenshot 2024-12-11 at 9 53 19 AM

The oidc provider is missing from authenticationproviderrow:

Screenshot 2024-12-11 at 9 52 25 AM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the setup described in issue 565 and run ./run-env.sh 10959-bearer-token-auth-ext. Compare the OIDC provider data in authenticationproviderrow with authenticateduser and authenticateduserlookup, then trace JVM-option provisioning; done means the OIDC provider has a row in authenticationproviderrow and remains available in Admin Dashboard → Manage Users.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, postgresql
Domain
authentication, backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.