Back to TOC
Note: Even if Concorda microservice is offering all required services for client authentication, in order to fully use the Concorda's features (includes user management, runtime configurations and others) you can use also Concorda Administration Dashboard, that can be installed and started as a separate application.
Clone github repository for Concorda
git clone [email protected]:concorda/concorda.git
then
- Run
npm install
to install all dependencies - Copy
config/sample.vars.env
toconfig/production.env
and add there the right configuration. - Set true what type you want to use for transport between client application and Concorda: mesh or tcp.
- Recommendation is to use TCP transport but also mesh or other types of transport (HTTP/HTPS) can be used.
- Example:
USE_MESH=false
USE_TRANSPORT=true
TRANSPORT_TYPE=tcp
- Run
npm start
to start application and server on port3070
(or whatever you specified in theproduction.env
file)
When using without Concorda Dashboard, the only way to configure Concorda is by using the env configuration file.
On config/production.env
file you will find these variables:
PUBLIC_REGISTER
- allowed values "0"/"1" - disable/enable public user register. If public register is disabled ("0") then user register can be done only based on user invitation.USER_POLICY
- this will define the user policy..activateAccount
- allowed values "0"/"1" - force account activation from confirm register emailforceChangePassword
- allowed values "0"/"1" - force user change password on first login if password was auto-generated on register.
PASSWORD_POLICY
- this will define the password policy to be used to enforce stronger user passwords.requireLowercase
- allowed values "0"/"1" - activate if lowercase characters are required in passwordrequireUppercas
- allowed values "0"/"1" - activate if uppercase characters are required in passwordrequireNumeric
- allowed values "0"/"1" - activate if numeric characters are required in passwordminLength
- numeric value - minimum length for user passwords.
AUTH_TYPE
- this will define the allowed authentication types.google
- allowed values "0"/"1" - disable/enable google logingithub
- allowed values "0"/"1" - disable/enable github logintwitter
- allowed values "0"/"1" - disable/enable twitter login
MAIL_TEMPLATE_FOLDER
- absolute path to mail template folder. Example of mail templates can be found here
- By default the following user is added to Concorda as part of initial setup: [email protected]/concorda
- It is very important that after you started Concorda for the first time to login and change administrator password and e-mail.
- Now you need to install and use
concorda-client
in your application as described here