login to next backend

This commit is contained in:
2026-04-18 23:45:46 +01:00
parent 2131a34e33
commit 174febe986
7 changed files with 139 additions and 80 deletions
+14
View File
@@ -0,0 +1,14 @@
export async function GET() {
const redirect = encodeURIComponent(
"http://localhost:3000/api/auth/callback"
);
const keycloakUrl =
`https://keycloak.petermaquiran.xyz/auth/realms/tvone/protocol/openid-connect/auth` +
`?client_id=tvone-web` +
`&response_type=code` +
`&scope=openid` +
`&redirect_uri=${redirect}`;
return Response.redirect(keycloakUrl);
}