Skip to content
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

How to detect whether someone has the required privileges? #15

Open
m-mohr opened this issue Dec 15, 2024 · 1 comment
Open

How to detect whether someone has the required privileges? #15

m-mohr opened this issue Dec 15, 2024 · 1 comment

Comments

@m-mohr
Copy link
Contributor

m-mohr commented Dec 15, 2024

From the conformance class https://api.stacspec.org/v1.0.0/ogcapi-features/extensions/transaction I can detect whether a server generally supports transactions.

What I can't detect is, whether the user (can be unauthenticated or authenticated), has permission to actually submit transactions.
In a UI, I'd like to only show a button to edit the file whenever I can be sure that the user has the actual permissions to use the transaction endpoints. This extension doesn't seem to describe this. How can we help with this?

@m-mohr
Copy link
Contributor Author

m-mohr commented Dec 15, 2024

Is it https://docs.ogc.org/DRAFTS/20-002.html#options maybe? But that would require an additional HTTP request.
I'm not sure whether sending Authorization headers or similar are well supported for the OPTIONS method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant