Skip to content

Commit 9bbd0dd

Browse files
committed
fix: added updated exports to openAPI and the SQL files
1 parent 913c328 commit 9bbd0dd

File tree

3 files changed

+1042
-1052
lines changed

3 files changed

+1042
-1052
lines changed

templates/ords-remix-jwt-sample/Database/Modules/concert_app.euser.v1.sql

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ DECLARE
1010
l_roles OWA.VC_ARR;
1111
l_modules OWA.VC_ARR;
1212
l_patterns OWA.VC_ARR;
13-
13+
1414
BEGIN
1515
ORDS.ENABLE_SCHEMA(
1616
p_enabled => TRUE,
@@ -399,18 +399,8 @@ BEGIN
399399
p_source =>
400400
'SELECT * FROM MUSIC_GENRES');
401401

402-
403-
404402
l_modules(1) := 'concert_app.euser.v1';
405403

406-
ORDS.DEFINE_PRIVILEGE(
407-
p_privilege_name => 'concert_app_euser',
408-
p_roles => l_roles,
409-
p_patterns => l_patterns,
410-
p_modules => l_modules,
411-
p_label => 'Non authenticated end user privilege',
412-
p_description => 'Provides limited access to the concert app endpoints',
413-
p_comments => NULL);
414404

415405
l_roles.DELETE;
416406
l_modules.DELETE;

templates/ords-remix-jwt-sample/app/utils/auth.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const auth0Strategy = new Auth0Strategy(
4545
clientSecret: AUTH0_CLIENT_SECRET,
4646
domain: AUTH0_DOMAIN,
4747
audience: AUTH0_AUDIENCE,
48-
scope: ['openid', 'email', 'profile', 'concert_app_euser', 'concert_app_authuser', 'concert_app_admin', 'oracle.dbtools.autorest.privilege.CONCERT_SAMPLE_APP.SEARCH_VIEW', 'oracle.dbtools.autorest.privilege.CONCERT_SAMPLE_APP.SEARCH_ARTIST_VIEW', 'oracle.dbtools.autorest.privilege.CONCERT_SAMPLE_APP.SEARCH_VENUES_VIEW'],
48+
scope: ['openid', 'email', 'profile', 'concert_app_authuser', 'concert_app_admin', 'oracle.dbtools.autorest.privilege.CONCERT_SAMPLE_APP.SEARCH_VIEW', 'oracle.dbtools.autorest.privilege.CONCERT_SAMPLE_APP.SEARCH_ARTIST_VIEW', 'oracle.dbtools.autorest.privilege.CONCERT_SAMPLE_APP.SEARCH_VENUES_VIEW'],
4949
},
5050
async ({
5151
accessToken, profile,

0 commit comments

Comments
 (0)