Skip to content

Commit 13e2b5d

Browse files
committed
move backend and IDP to authzen-interop.net URLs
1 parent 49c828b commit 13e2b5d

File tree

5 files changed

+41
-4
lines changed

5 files changed

+41
-4
lines changed

interop/authzen-todo-application/.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
VITE_OIDC_DOMAIN=citadel.demo.aserto.com
1+
VITE_OIDC_DOMAIN=citadel.authzen-interop.net
22
VITE_OIDC_CLIENT_ID=citadel-app
33
VITE_OIDC_AUDIENCE=citadel-app
4-
VITE_API_ORIGIN=https://authzen-todo-backend.demo.aserto.com
4+
VITE_API_ORIGIN=https://todo-backend.authzen-interop.net
55
# VITE_API_ORIGIN=http://localhost:8080

interop/authzen-todo-backend/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "authzen-todo-backend",
3-
"version": "0.1.16",
3+
"version": "0.1.17",
44
"description": "AuthZEN todo backend interop sample",
55
"main": "src/index.ts",
66
"scripts": {
@@ -10,6 +10,8 @@
1010
"dev": "nodemon --ignore db/* ./src/index.ts",
1111
"docker-build": "scripts/docker-build.sh",
1212
"docker-run": "scripts/docker-run.sh",
13+
"gcp-build": "scripts/build-gcp.sh",
14+
"gcp-deploy": "scripts/deploy-gcp.sh",
1315
"tsc": "tsc --noEmit --incremental",
1416
"release": "./scripts/release.sh",
1517
"test": "node build/test/runner.js",
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
REGISTRY=${REGISTRY:-gcr.io}
4+
PROJECT=${PROJECT:-authzen-457117}
5+
IMAGE=${IMAGE:-authzen-todo-backend}
6+
7+
# extract version from package.json
8+
VERSION=$(cat package.json \
9+
| grep version \
10+
| head -1 \
11+
| awk -F: '{ print $2 }' \
12+
| sed 's/[",]//g' \
13+
| tr -d '[[:space:]]')
14+
15+
# submit the build to google cloud build and tag the image with the version
16+
gcloud builds submit --tag $REGISTRY/$PROJECT/$IMAGE:$VERSION
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
REGISTRY=${REGISTRY:-gcr.io}
4+
PROJECT=${PROJECT:-authzen-457117}
5+
IMAGE=${IMAGE:-authzen-todo-backend}
6+
SERVICE=${SERVICE:-authzen-todo-backend}
7+
8+
# extract version from package.json
9+
VERSION=$(cat package.json \
10+
| grep version \
11+
| head -1 \
12+
| awk -F: '{ print $2 }' \
13+
| sed 's/[",]//g' \
14+
| tr -d '[[:space:]]')
15+
16+
gcloud run deploy $SERVICE \
17+
--image $REGISTRY/$PROJECT/$IMAGE:$VERSION \
18+
--platform managed --allow-unauthenticated \
19+
--region us-central1

interop/authzen-todo-backend/src/pdps.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141
},
4242
"gateways": {
43-
"--Pass Through--": "https://authzen-todo-backend.demo.aserto.com",
43+
"--Pass Through--": "https://todo-backend.authzen-interop.net",
4444
"AWS API Gateway": "https://aws-gateway.authzen-interop.net",
4545
"Envoy": "https://authzen-envoy-proxy-demo.cerbos.dev",
4646
"Kong": "https://plainid-kong-gw.se-plainid.com",

0 commit comments

Comments
 (0)