(check-credentials request-map now refresh-period-s)Given a request-map with holding an authenticated OIDC user principal:
Given a request-map with holding an authenticated OIDC user principal: - Determine the duration in seconds until the user expires - Attempt refresh-token redemption if user within refresh-period-s of expiry - Invalidate user session if user has expired Returns: true if the user has expired
(configuration {:slipway.security.oidc/keys
[issuer client-id client-secret authorization-endpoint
token-endpoint end-session-endpoint authentication-method
http-client scopes logout-when-id-token-is-expired?]
:or {scopes ["profile" "email"]
logout-when-id-token-is-expired? false}})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 |