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`.The Authorization header value for a Credential, by :auth/scheme.
The Authorization header value for a Credential, by `:auth/scheme`.
The Basic user sent when none is configured.
The Basic user sent when none is configured.
(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.(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.
(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.
(secret s)s as a Secret, or nil when blank.
`s` as a Secret, or nil when blank.
(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.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |