As on 13-November-2023 you can also use the, since all components are not directly needed to run (example: Kafka / AMQ operator is not available on Sandbox)
Download latest container releases at:
Please follow below steps in order
Login to your cluster
oc login -u <USERNAME> <URL>
If running on your local machine then you can also (Setup a new project dedicated for Co-Auth) below
oc new-project coauth
oc project coauth
Postgres Setup
This is where your persistent data resides
Login to OpenShift console and navigate to developer -> +Add->Database->postgres (persistent)
Configure as below
Configurations:
Service name: postgresql
POSTGRESQL_USER: postgres
POSTGRESQL_PASSWORD: postgres
POSTGRESQL_DATABASE: coauth
Creating the database
Once started head over to terminal in the pod and execute the following
#Verify if the script was successful
\dt
#this is display 7 rows
select * from core_app_auth_mstr;
#This will display 1 row
#Now Quit psql
\quit
#Now exit terminal of pod
exit
This activity will create the necessary database structure, along with a dummy test application "Co-Auth Test app" and a corresponding key 11111111-1111-1111-1111-111111111111
Your database is now setup
Data-Grid / Infinispan Setup
This component is used to reduce load on the database calls. With Infinispan you have in-memory data across your pods as they scale up and down with request traffic.
For data grid setup follow OpenShift documentation
For manual setup from web console follow below steps
A sample application developed in Quarkus and Vuejs to demonstrate how to integrate Co-Auth with third party applications
For demonstration purpose, the example app resides behind api gateway. However, in real world scenarios the example app would reside outside with the example app configuring the URLs of Co-Auth