@vymalo/medusa-keycloak
v1.0.6
Published
Login your medusa clients with Keycloak
Downloads
459
Maintainers
Readme
MedusaJS Keycloak
Login your medusa clients with Keycloak
Installation
npm install @vymalo/medusa-keycloak
or if using yarn
yarn add @vymalo/medusa-keycloak
Usage
To use this plugin, you should add it into the modules
section of your MedusaJS configuration.
modules: [
...
{
resolve: '@medusajs/medusa/auth',
options: {
providers: [
{
resolve: `@vymalo/medusa-keycloak`,
id: 'ssegning',
options: {
url: process.env.KEYCLOAK_URL,
realm: process.env.KEYCLOAK_REALM,
clientId: process.env.KEYCLOAK_CLIENT_SECRET,
clientSecret: process.env.KEYCLOAK_CLIENT_SECRET,
},
},
{
resolve: '@medusajs/medusa/auth-emailpass',
id: 'emailpass',
options: {},
},
],
},
},
...