Introduction
Like all SOAJS microservices, OAuth microservice has different layers of configuration. Local configuration, tenant-level configuration if the microservice is a multitenant one, and registry configuration. Moreover, OAuth can have a custom separate database for tokens and users.
Configuration Layers
1 - Tenant
serviceconfiguration
This configuration is on the tenant level. OAuth configuration can be added from SOAJS Console and will exist under the tenant key configuration object.
Configuration Sample
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Steps to add tenant-level configuration
2 -
RegistryEnvironment configuration (
Environmentregistry)
configurationThis configuration is on the environment level. OAuth configuration can be added from SOAJS Console also.
3 - Separate Database for tokens and users
OAuth can have a separate database that can be added from Deploy tab in SOAJS Console → Databases
Tenant Key Configuration (provision)
Info | ||
---|---|---|
| ||
In provision - key configuration |
Passport Login: Define application keys for passport integration. Currently supporting Azure, Github, Twitter, Facebook, and Google. Got to the link for more information and an example of the configuration.OAuth allows third-party login via one of the below methods:
OpenAM login: SSO (Single Sign-On).
LDAP (Lightweight Directory Access Protocol) login: Active directory login.