It implements a module for Duct.
hydrogen.module.session.cognito
further enriches config provided by
hydrogen.module.core
to support AWS Cognito User Pools-based session management.
{:hydrogen.module/core {
;; core hydrogen config
}
:hydrogen.module/session.cognito {}}
The module merges the following Integrant keys to system configuration:
:project-ns.api/config
: it provides the above env variables values to the front-end:magnet.buddy-auth/jwt-oidc
: it provides a function that implements :duct.middleware.buddy/authentication
compatible JWT token validation for OpenID Connect ID Tokens.:duct.middleware.buddy/authentication
: it provides a Ring-compatible middleware that enables authentication using OpenID Connect ID Tokens.You will need to reference the :duct.middleware.buddy/authentication
key from the routes' handlers keys where you want to use authentication. E.g.:
:add-example-api? true
option to make running demo more effortless. The default for this option is false
so there's probably nothing for you to care about :)Copyright (c) Magnet S Coop 2019.
The source code for the library is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
Can you improve this documentation? These fine people already did:
James Reeves, Damian Hryniewicz & Iñaki ArenazaEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close