Skip to content

Commit e554cb0

Browse files
committed
refactor: sql/OIDC add set_and_connect.sql
1 parent 30524af commit e554cb0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
-- =============================================================================
2+
-- SET VARIABLES
3+
-- =============================================================================
4+
-- This script defines all variables used in the OIDC setup scripts
5+
-- Update these values to match your environment and security requirements
6+
7+
-- Database connection parameters (update these to match your OBP configuration)
8+
-- These should match the values in your OBP-API props file (db.url)
9+
\set DB_HOST 'localhost'
10+
\set DB_PORT '5432'
11+
\set DB_NAME 'sandbox'
12+
13+
-- OIDC user credentials
14+
-- ⚠️ SECURITY: Change this to a strong password (20+ chars, mixed case, numbers, symbols)
15+
\set OIDC_USER "oidc_user"
16+
\set OIDC_PASSWORD '''lakij8777fagg'''
17+
18+
-- OIDC admin user credentials (for client administration)
19+
-- ⚠️ SECURITY: Change this to a strong password (20+ chars, mixed case, numbers, symbols)
20+
\set OIDC_ADMIN_USER "oidc_admin"
21+
\set OIDC_ADMIN_PASSWORD '''fhka77uefassEE'''
22+
23+
-- =============================================================================
24+
-- Connect to the OBP database
25+
-- =============================================================================
26+
\echo 'Connecting to OBP database...'
27+
\c :DB_NAME

0 commit comments

Comments
 (0)