Social Authentication
Leopard can be configured to register, login and logout users using Firebase Authentication.
Last updated
Leopard can be configured to register, login and logout users using Firebase Authentication.
Last updated
const config = {
...,
/**
* Social Authentication is provided through https://firebase.google.com/
* Empty values signals no authentication
*/
socialAuthentication: {
firebase: {
apiKey: "",
authDomain: "",
databaseUrl: "", // Firebase Realtime Database
messagingSenderId: "",
microsoft: {
domainHint: "", // my-domain.com
tenant: "" // Azure AD Tenant ID
},
projectId: "", // firebase project id
providers: ["microsoft", "facebook", "google", "github"], // login and register will only show buttons for these providers
storageBucket: ""
}
},
...
};
module.exports = config;
if (engineEnvironment.getParameter("name")) {
Lib_sUserFirstName = engineEnvironment.getParameter("name").split()[0]
}
if (engineEnvironment.getParameter("email")) {
globalUserEmail = engineEnvironment.getParameter("email")
}