-
Notifications
You must be signed in to change notification settings - Fork 40
Authentication and Authorization
Kuan Fan edited this page Oct 11, 2019
·
12 revisions
page owner: tfrs developer
Each of team members have three BCeID users on BCeID Test server. Each user is mapped to a different role.
- dev.lowcarbonfuels.gov.bc.ca 142.34.241.25
- test.lowcarbonfuels.gov.bc.ca 142.34.241.29
- lowcarbonfuels.gov.bc.ca 142.34.241.30
- Dev:
- Test:
- Prod:
Only serve /, don't serve /api
location / {
root /tmp/app/dist;
index index.html index.htm;
try_files $uri $uri/ /index.html;
gzip on;
gzip_min_length 1000;
gzip_types *;
}
-
location /api
- Sm-UniversalId "[idir or bceid name]";
- Smgov-Userguid "xxxxxx";
- Sm-Authdirname "IDIR";
- Smgov-USERTYPE "Internal";
- Smgov-Useremail "first.last@gov.bc.ca";
- Smgov-UserDisplayName "first, last CSNR:EX";
-
location /api-business
- Sm-UniversalId "[idir or bceid name]";
- Smgov-Userguid “xxxxxxxxxx";
- Smgov-BusinessLegalName "TFRS Biz Test";
- Smauth-Businesslegalname "TFRS Biz Test";
- Smgov-Businessguid “xxxxx";
- Smgov-Useremail “First.Last@gmail.com";
- Smgov-UserDisplayName “First Last";
See here: https://github.com/bcgov/tfrs/tree/master/backend/api/models
Models with "roles", "permissions", or "users" in the name are involved in Authorization