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

extractclj

(extract request)

Extract the value of Echo-Token header that was passed in the request.

Extract the value of `Echo-Token` header that was passed in the request.
sourceraw docstring

find-xmlclj

(find-xml xml-str in-keys)
source

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

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

× close