Skip to content

Commit 609549e

Browse files
committed
refactor: OIDC three scripts
1 parent 3816c40 commit 609549e

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed
Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
1-
-- =============================================================================
2-
-- GIVE READ ACCESS TO OBP USERS AND WRITE ACCESS TO OBP CONSUMERS
3-
-- =============================================================================
4-
-- This orchestration script grants OIDC_ADMIN_USER read access to user-related views
5-
-- and full CRUD access to consumer/client management
6-
-- by including the necessary component scripts
7-
81
-- Include variable definitions and database connection
92
\i set_and_connect.sql
103

11-
-- Create the OIDC users
12-
-- TODO check if we need both here.
13-
\i cre_OIDC_USER.sql
4+
145
\i cre_OIDC_ADMIN_USER.sql
156

16-
-- Create all three views (which include the necessary GRANT statements)
17-
\i cre_v_oidc_users.sql
18-
\i cre_v_oidc_clients.sql
197
\i cre_v_oidc_admin_clients.sql
208

219
\echo 'Bye from give_read_access_to_obp_users_and_write_access_to_obp_consumers.sql'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- Include variable definitions and database connection
2+
\i set_and_connect.sql
3+
4+
-- Note we don't create the OIDC_USER here
5+
6+
-- Create the v_oidc_users view (which includes GRANT SELECT to OIDC_USER)
7+
\i cre_v_oidc_clients.sql
8+
9+
\echo 'Bye from give_read_access_to_obp_clients.sql'

obp-api/src/main/scripts/sql/OIDC/give_read_access_to_users.sql

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
-- =============================================================================
2-
-- GIVE READ ACCESS TO OBP USERS
3-
-- =============================================================================
4-
-- This orchestration script grants OIDC_USER read access to user-related views
5-
-- by including the necessary component scripts
61

72
-- Include variable definitions and database connection
83
\i set_and_connect.sql

0 commit comments

Comments
 (0)