Skip to content

Determine whether someone is allowed to use transactions #1005

@m-mohr

Description

@m-mohr

Is there a way to determine in a standardized way whether an authenticated users is allowed to use the transaction endpoints?

Currently, I can't determine whether someone has permission to edit and offer the Edit button (in a web UI) to anyone that is authenticated. So people start to edit and then only when I submit the information to the endpoint, I get an error. That's too late.

Some potential possibilities are:

  • Add a transaction link to the item/collection only when the user has permission to edit this entity (or is this already the case)? (per entity)
  • Send Authentication header to the /conformance endpoint and only return the transaction conformance class when the user has permission to use tranactions (global)
  • Add a tranactions flag to the landing page? (global)
  • Use the OPTIONS method somehow to determine permissions for endpoints? (per entity)
  • ...?

This came up in STAC, but as we share the same transaction extension mechanics, I thought it might be a good idea to raise this issue here.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions