From c04e7115691f47d9c847dfc2faccc4d07d94a5d9 Mon Sep 17 00:00:00 2001 From: Agustin Vazquez Date: Mon, 12 Aug 2024 15:24:26 -0300 Subject: [PATCH 1/2] Add new endpoint for POAP Auth0 --- aws/public-api-server.task-definition.json.j2 | 2 +- aws/server.task-definition.json.j2 | 2 +- src/external/poap.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aws/public-api-server.task-definition.json.j2 b/aws/public-api-server.task-definition.json.j2 index cd204b4bb..af848b389 100644 --- a/aws/public-api-server.task-definition.json.j2 +++ b/aws/public-api-server.task-definition.json.j2 @@ -40,7 +40,7 @@ }, { "name": "POAP_AUTH_URL", - "value": "https://poapauth.auth0.com" + "value": "https://auth.accounts.poap.xyz" }, { "name": "GITHUB_URL", diff --git a/aws/server.task-definition.json.j2 b/aws/server.task-definition.json.j2 index 1c7f386f3..f51c7f7e0 100644 --- a/aws/server.task-definition.json.j2 +++ b/aws/server.task-definition.json.j2 @@ -36,7 +36,7 @@ }, { "name": "POAP_AUTH_URL", - "value": "https://poapauth.auth0.com" + "value": "https://auth.accounts.poap.xyz" }, { "name": "GITHUB_URL", diff --git a/src/external/poap.ts b/src/external/poap.ts index 3b615069b..b091ef5db 100644 --- a/src/external/poap.ts +++ b/src/external/poap.ts @@ -46,7 +46,7 @@ async function retrievePOAPToken(): Promise { const poapResponse = await fetch(`${POAP_AUTH_URL}/oauth/token`, { method: 'POST', body: JSON.stringify({ - audience: 'gitpoap', + audience: 'https://api.poap.tech/', grant_type: 'client_credentials', client_id: POAP_CLIENT_ID, client_secret: POAP_CLIENT_SECRET, From 32e84333d33c8cf817495706b06320903d677449 Mon Sep 17 00:00:00 2001 From: Agustin Vazquez Date: Mon, 12 Aug 2024 15:46:47 -0300 Subject: [PATCH 2/2] Fix audience typo --- src/external/poap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/external/poap.ts b/src/external/poap.ts index b091ef5db..fad85c79a 100644 --- a/src/external/poap.ts +++ b/src/external/poap.ts @@ -46,7 +46,7 @@ async function retrievePOAPToken(): Promise { const poapResponse = await fetch(`${POAP_AUTH_URL}/oauth/token`, { method: 'POST', body: JSON.stringify({ - audience: 'https://api.poap.tech/', + audience: 'https://api.poap.tech', grant_type: 'client_credentials', client_id: POAP_CLIENT_ID, client_secret: POAP_CLIENT_SECRET,