Liking cljdoc? Tell your friends :D

cmr.authz.token

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

->userclj

(->user base-url token)

Given a token, return the associated user name.

Given a token, return the associated user name.
raw docstring

extractclj

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

find-xmlclj

(find-xml xml-str in-keys)

get-token-infoclj

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

parse-tokenclj

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

parse-token-dataclj

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

parse-usernameclj

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

token-data-keyclj

(token-data-key token)

Generate a key to be used for caching token data.

Generate a key to be used for caching token data.
raw docstring

token-info-resourceclj

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

user-id-keyclj

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

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

× close