Liking cljdoc? Tell your friends :D

cmr.authz.permissions

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 ...}]
 ...]
raw docstring

cmr-acl->reitit-aclclj

(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:

  • 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.
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.
raw docstring

conceptclj

(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.
raw docstring

echo-concept-queryclj

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.
raw docstring

permissions-keyclj

(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.
raw docstring

reitit-acl-dataclj

(reitit-acl-data concept-id annotation)

Construct permissions

Construct permissions 
raw docstring

route-annotationclj

(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.
raw docstring

route-concept-idclj

(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.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close