hubmapconsortium / ingest-api

MIT License
0 stars 0 forks source link

Handle missing/bad Authorization header #533

Closed ChuckKollar closed 6 months ago

ChuckKollar commented 6 months ago
The endpoint will return a status_code of 401 (as per the ingest-api-spec.yaml file)
if the "User's token is not valid" (missing, or not logged in).
For a valid logged in token it will return the json {'has_data_admin_privs': true/false}
with a status_code of 200.