Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 service configuration

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
languagejs
titleConfiguration Sample
linenumberstrue
collapsetrue

Steps to add tenant-level configuration


2 - Registry (Environment) configuration

This 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


Third-Party configuration


Info
titleLocation

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.