The functions in this API are responsible for such things as making queries to CMR Access Control to get token-to-user mappings, extracting tokens from request headers, and defining caching keys and related tasks.
The functions in this API are responsible for such things as making queries to CMR Access Control to get token-to-user mappings, extracting tokens from request headers, and defining caching keys and related tasks.
(->user base-url token)
Given a token, return the associated user name.
Given a token, return the associated user name.
(extract request)
Extract the value of Authorization
or Echo-Token
header that was passed in the request.
Extract the value of `Authorization` or `Echo-Token` header that was passed in the request.
(find-xml xml-str in-keys)
(get-token-info base-url token)
Query the CMR Access Control API for information assocated with the given token.
Query the CMR Access Control API for information assocated with the given token.
(parse-token xml-str)
Parse the XML that is returned when querying the CMR Access Control API for the token.
Parse the XML that is returned when querying the CMR Access Control API for the token.
(parse-token-data xml-str)
Parse the XML that is returned when querying the CMR Access Control API for token info.
Parse the XML that is returned when querying the CMR Access Control API for token info.
(parse-username xml-str)
Parse the XML that is returned when querying the CMR Access Control API for the username associated with the token.
Parse the XML that is returned when querying the CMR Access Control API for the username associated with the token.
(token-data-key token)
Generate a key to be used for caching token data.
Generate a key to be used for caching token data.
The path segment to the ECHO REST API resource that is queried in order to get user/token mappings.
The path segment to the ECHO REST API resource that is queried in order to get user/token mappings.
(user-id-key token)
Generate a key to be used for caching user-id data.
Generate a key to be used for caching user-id data.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close