Skip to content

Issue - 'dac_authorizations' items are removed from my user info #46

@leoraba

Description

@leoraba

Description

After adding dac permissions to my user for an specific study, the permission shows only for a short period of time, after a while they disappear.

Steps to reproduce the issue: (based on docs)

  1. Add dac permission to my user
    POST https://authz.ingress.dev.k8s.pcgl.dev-sd4h.ca/user/PCGL100064
    Body:

    {
        "study_id": "TEST-CA",
        "start_date": "2025-12-11",
        "end_date": "2026-12-11"
    }

    200 OK

  2. Check my new permission added:
    GET https://authz.ingress.dev.k8s.pcgl.dev-sd4h.ca/user/PCGL100064
    Response:

    ..
    ..
    "dac_authorizations": [
         {
             "end_date": "2026-12-11",
             "start_date": "2025-12-11",
             "study_id": "TEST-CA"
         }
     ],
     ....
  3. Wait 5 minutes and repeat step 2 to check my permissions.

Actual response:
Response contains empty dac_authorizations

Expected:
Response should contain 1 item on dac_authorizations array.

Metadata

Metadata

Assignees

No one assigned

    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