diff options
| author | Claude <claude@anthropic.com> | 2026-08-31 00:00:00 +0000 |
|---|---|---|
| committer | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2026-08-31 14:45:12 -0500 |
| commit | de676ab08ecf8502ffd45fb0ada68803e5e62124 (patch) | |
| tree | d2aea464b5a9397e32932d5c289edf6329d91631 /gn3/api | |
| parent | 41e8ccb5fd350f4046ef7ddef873490667bd08b7 (diff) | |
| download | genenetwork3-de676ab08ecf8502ffd45fb0ada68803e5e62124.tar.gz | |
fix(api): migrate auth/system/roles → auth/resource/system/roles
Update the two call-sites (metadata.py and case_attributes.py) to use the non-deprecated endpoint path.
Diffstat (limited to 'gn3/api')
| -rw-r--r-- | gn3/api/case_attributes.py | 2 | ||||
| -rw-r--r-- | gn3/api/metadata.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gn3/api/case_attributes.py b/gn3/api/case_attributes.py index c97c79e..2c380db 100644 --- a/gn3/api/case_attributes.py +++ b/gn3/api/case_attributes.py @@ -326,7 +326,7 @@ def __population_privileges__( system_privs: tuple[str, ...] = tuple() sys_resp = requests.get( - urljoin(auth_url, "auth/system/roles"), + urljoin(auth_url, "auth/resource/system/roles"), headers={"Authorization": bearer}, timeout=300) if sys_resp.status_code == 200: diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py index 94e2b2e..89b6108 100644 --- a/gn3/api/metadata.py +++ b/gn3/api/metadata.py @@ -211,7 +211,7 @@ def edit_dataset(): # === - use the `/auth/resource/<RESOURCE-ID>/roles` endpoint # === b) The Genenetwork system # === - This is always checked regardless of results in step 1 above - # === - use the `/auth/system/roles` endpoint. + # === - use the `/auth/resource/system/roles` endpoint. # === 3) Retrieve privileges from the results of step 2 above # === 4) Check for appropriate privileges # === @@ -267,7 +267,7 @@ def edit_dataset(): } return mrequests.get( - urljoin(current_app.config["AUTH_SERVER_URL"], "auth/system/roles"), + urljoin(current_app.config["AUTH_SERVER_URL"], "auth/resource/system/roles"), headers=headers ).then( lambda system_roles: tuple(privilege["privilege_id"] |
