Skip to content

Commit

Permalink
fix: add AS_CERTIFIER flag to index
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Jun 2, 2020
1 parent 87bf455 commit 6438131
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ let databaseURL = 'postgres://';

const NO_AUTH = process.argv.includes('NO_AUTH');
const AS_REPORTER = process.argv.includes('AS_REPORTER');
const AS_CERTIFIER = process.argv.includes('AS_CERTIFIER');
const AS_ANALYST = process.argv.includes('AS_ANALYST');
const AS_ADMIN = process.argv.includes('AS_ADMIN');
const AS_PENDING = process.argv.includes('AS_PENDING');
Expand Down Expand Up @@ -175,6 +176,15 @@ app.prepare().then(() => {
};
}

if (AS_CERTIFIER) {
return {
'jwt.claims.sub': '15a21af2-ce88-42e6-ac90-0a5e24260ec6',
'jwt.claims.user_groups': 'User',
'jwt.claims.priority_group': 'User',
role: 'ciip_industry_user'
};
}

if (AS_REPORTER) {
return {
'jwt.claims.sub': '809217a1-34b8-4179-95bc-6b4410b4fe16',
Expand Down

0 comments on commit 6438131

Please sign in to comment.