Permissions for CMR OPeNDAP are utilized in the application routes when it is necessary to limit access to resources based on the specific capabilities granted to a user.
Permissions are included in the route definition along with the route's handler. For example:
[...
["my/route" {
:get {:handler my-handlers/my-route
:permissions #{:read}}
:post ...}]
...]
Permissions for CMR OPeNDAP are utilized in the application routes when it is necessary to limit access to resources based on the specific capabilities granted to a user. Permissions are included in the route definition along with the route's handler. For example: ``` [... ["my/route" { :get {:handler my-handlers/my-route :permissions #{:read}} :post ...}] ...]
(cmr-acl->reitit-acl cmr-acl)
Convert a CMR ACL to an ACL that can be matched against permissions in the reitit routing library's data structure. There following conditions are handled:
Convert a CMR ACL to an ACL that can be matched against permissions in the reitit routing library's data structure. There following conditions are handled: * return an empty set when a CMR ACL is nil-valued * return a reitit-ready ACL when a map (representing a CMR ACL) is given * return the CMR ACL as-is in all other cases.
(concept base-url token user-id concept-id)
Query the CMR Access Control API to get the permissions the given token+user have for the given concept.
Query the CMR Access Control API to get the permissions the given token+user have for the given concept.
The query formatter used when making a concept permissions query to the CMR Access Control API.
The query formatter used when making a concept permissions query to the CMR Access Control API.
(permissions-key token concept-id)
Generate a key to be used for caching permissions data.
Generate a key to be used for caching permissions data.
(reitit-acl-data concept-id annotation)
Construct permissions
Construct permissions
(route-annotation request)
Extract any permissions annotated in the route associated with the given request.
Extract any permissions annotated in the route associated with the given request.
(route-concept-id request)
Given a request, return the concept id for which we are checking permissions.
Given a request, return the concept id for which we are checking permissions.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close