Skip to content

Commit

Permalink
auth0 httpInterceptor.allowedList[0].uri not yet dynamic - hard coded
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jul 5, 2024
1 parent 20df44c commit 1cfc7fa
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion webapp-ng/auth_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"authorizationParams": {
"audience": "https://vcellapi.cam.uchc.edu"
},
"apiUri": "https://vcell-stage.cam.uchc.edu",
"apiUri": "https://minikube.island",
"errorPath": "/error"
}
2 changes: 1 addition & 1 deletion webapp-ng/proxy.conf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"/api": {
"target": "https://vcell-stage.cam.uchc.edu",
"target": "https://minikube.island",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
Expand Down
9 changes: 6 additions & 3 deletions webapp-ng/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,24 @@ export const environment = {
domain,
clientId,
authorizationParams: {
audience: 'https://vcellapi.cam.uchc.edu',
audience: `${audience}`,
redirect_uri: window.location.origin,
},
errorPath,
},
apiUri: 'https://vcell-stage.cam.uchc.edu',
apiUri: `${apiUri}`,
httpInterceptor: {
allowedList: [
{
// uri: `${config.apiUri}/api/*`,
// uri: `${apiUri}/api/*`,
// uri: '/api/*',
uri: 'https://vcell-stage.cam.uchc.edu/api/*',

// allowAnonymous: true,
tokenOptions: {
authorizationParams: {
audience: 'https://vcellapi.cam.uchc.edu',
audience: `${audience}`,
scope: 'openid profile email'
}
}
Expand Down
9 changes: 6 additions & 3 deletions webapp-ng/src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,24 @@ export const environment = {
domain,
clientId,
authorizationParams: {
audience: 'https://vcellapi.cam.uchc.edu',
audience: `${audience}`,
redirect_uri: window.location.origin,
},
errorPath,
},
apiUri: 'https://vcell-stage.cam.uchc.edu',
apiUri: `${apiUri}`,
httpInterceptor: {
allowedList: [
{
// uri: `${config.apiUri}/api/*`,
// uri: `${apiUri}/api/*`,
// uri: '/api/*',
uri: 'https://vcell-stage.cam.uchc.edu/api/*',

// allowAnonymous: true,
tokenOptions: {
authorizationParams: {
audience: 'https://vcellapi.cam.uchc.edu',
audience: `${audience}`,
scope: 'openid profile email'
}
}
Expand Down

0 comments on commit 1cfc7fa

Please sign in to comment.