-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
403 when creating a metadata schema draft using the API #572
Comments
Reproduced on develop branch on localhost (with default dev db):
So we're authenticated, but not authorized. More detail:
Note the |
POST {
"uuid": "7e64818d-6276-46fb-8bb1-732e6e09f7e9",
"firstName": "Albert",
"lastName": "Einstein",
"email": "albert.einstein@example.com",
"role": "USER"
} Note the This holds for both Albert Einstein and Nikola Tesla, even though the readme says Albert is ADMIN: Lines 106 to 110 in 1e33bfd
The dev db migrations show there is a new admin in town: FAIRDataPoint/src/main/resources/dev/db/migration/V0001.1__dev-data-users.sql Lines 25 to 32 in 1e33bfd
Using a token for |
@kburger were you also using the local dev db with default users, or were you using a custom db with real users? |
@MarekSuchanek I can try to fix the inconsistency between migration and readme, but how do you wish to proceed?
|
Default users, but also a confirmed |
They're all running tagged docker images, mostly the |
What is your question?
When
POST
ing a metadata schema using the/metadata-schemas
I get a403 Access is denied
error. I've provided aBearer
token in theAuthorization
header (for the admin user), and the body is exactly the same as the client produces. The log output is not showing anything beyond the 403 error either. How can I best proceed from here?The text was updated successfully, but these errors were encountered: