Auth Server

Setup Authentication Server with your organization SSO

The Authentication Server is an important part of the Convai setup as it handles authentication of user and also validation across multiple subdomains of Convai services. It is essential to understand the exact requirement of the user's authentication service and create configuration files accordingly.

In the current setup, we assume a simple Authentication service from Firebase is being used.

Image:

circle-info

The final image link may vary depending on the client environment and the services being used. Please note that the link shared here is private and can only be accessed by members within the organization.

convaitech/convai-auth-onprem:v0.1.5

Environment Variable Setup

Create a .env file in your system. Lets assume a auth-server.env file exists at /var/secrets. Fill the file with the required configurations as specified by the team. Here is some sample data..

// auth-server.env
COOKIE_ENCRYPTION_KEY=random-token

# OPENID_CONNECT_KEY=5ar4f5jl9u...
# OPENID_CONNECT_SECRET=1rfu4nsa00ql91i33ieua...
# OPENID_CONNECT_DISCOVERY_URL=https://cognito-idp.us-west-1.amazonaws.com/us-wes.../.well-known/openid-configuration

COOKIE_DOMAIN=localhost
BASE_URL=http://localhost:8081
IS_ON_PREM=true
...

Container Deployment:

Run the following docker command to start the server:

Sample Helm Config

Here we are attaching a sample helm chart to host the service.

Last updated