mirror of
https://github.com/PeterMaquiran/tvone.git
synced 2026-04-21 05:45:51 +00:00
login to next backend
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user