(fetch-oidc-userinfo uri access-token)
Return userinfo from OIDC endpoint or nil if unauthorized or other error.
Return userinfo from OIDC endpoint or nil if unauthorized or other error.
(get-ring-oauth2-entry request)
Return [id token-map] for ring-oauth2 session in request or nil if :ring.middleware.oauth2/access-tokens not present.
Return [id token-map] for ring-oauth2 session in request or nil if :ring.middleware.oauth2/access-tokens not present.
(wrap-userinfo handler profile-map)
If request has a valid token, add ::userinfo key with results from OIDC userinfo_endpoint before calling next handler.
If request has a valid token, add ::userinfo key with results from OIDC userinfo_endpoint before calling next handler.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close