Liking cljdoc? Tell your friends :D

hive-rss.promote.credential

Feed credentials. Pure: the environment is passed in.

:feed/auth config forms (string keys accepted too): {:secret-env "HIVE_STORE_KEY"} Basic, key from the environment {:secret "hv_live_..." :username "me"} Basic, key inline {:scheme "bearer" :secret-env "FEED_TOKEN"} Bearer A URL carrying user:secret@ yields a Basic credential and loses the userinfo. The secret reaches the wire only through authorization.

Feed credentials. Pure: the environment is passed in.

`:feed/auth` config forms (string keys accepted too):
  {:secret-env "HIVE_STORE_KEY"}                 Basic, key from the environment
  {:secret "hv_live_..." :username "me"}         Basic, key inline
  {:scheme "bearer" :secret-env "FEED_TOKEN"}    Bearer
A URL carrying `user:secret@` yields a Basic credential and loses the
userinfo. The secret reaches the wire only through `authorization`.
raw docstring

authorizationcljmultimethod

The Authorization header value for a Credential, by :auth/scheme.

The Authorization header value for a Credential, by `:auth/scheme`.
sourceraw docstring

default-usernameclj

The Basic user sent when none is configured.

The Basic user sent when none is configured.
sourceraw docstring

for-urlclj

(for-url subscriptions url)

{:url :credential} for an on-demand fetch of url: the URL without userinfo, and its userinfo credential, else the :feed/auth of the subscription in subscriptions with that URL, else nil.

`{:url :credential}` for an on-demand fetch of `url`: the URL without
userinfo, and its userinfo credential, else the `:feed/auth` of the
subscription in `subscriptions` with that URL, else nil.
sourceraw docstring

from-configclj

(from-config auth env)

Result of the Credential that auth describes under environment env. Error :rss/invalid-auth with a :reason that never contains a secret.

Result of the Credential that `auth` describes under environment `env`.
Error `:rss/invalid-auth` with a `:reason` that never contains a secret.
sourceraw docstring

same-origin?clj

(same-origin? a b)

Whether absolute URLs a and b share scheme, host and port.

Whether absolute URLs `a` and `b` share scheme, host and port.
sourceraw docstring

secretclj

(secret s)

s as a Secret, or nil when blank.

`s` as a Secret, or nil when blank.
sourceraw docstring

split-urlclj

(split-url url)

{:url :credential}: url trimmed and without userinfo, and the Basic credential its userinfo names, or nil. Userinfo with no password uses the user part as the secret.

`{:url :credential}`: `url` trimmed and without userinfo, and the Basic
credential its userinfo names, or nil. Userinfo with no password uses the
user part as the secret.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close