From 4584e92b37b443e487f98c3bebc02960a217ddee Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Mon, 18 Mar 2024 03:24:44 +0100
Subject: [PATCH] WIP: OAuth authn

---
 pages/api/auth/[...nextauth].ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pages/api/auth/[...nextauth].ts b/pages/api/auth/[...nextauth].ts
index fac476e..32e8c6e 100644
--- a/pages/api/auth/[...nextauth].ts
+++ b/pages/api/auth/[...nextauth].ts
@@ -8,7 +8,7 @@ const issuer = 'https://keycloak.sso.gwdg.de/auth/realms/academiccloud'
 async function refreshAccessToken (token: any) {
   try {
     const url =
-      issuer + '/protocol/openid-connect/token?' +
+      issuer + '/protocol/openid-connect?' +
       new URLSearchParams({
         client_id: clientId,
         client_secret: clientSecret,
-- 
GitLab