mirror of
https://github.com/PeterMaquiran/tvone.git
synced 2026-04-20 16:11:51 +00:00
14 lines
412 B
TypeScript
14 lines
412 B
TypeScript
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);
|
|
} |