Supports OIDC incomoing

This commit is contained in:
2025-10-06 13:06:09 +08:00
parent c85d373479
commit 367db215cf

View File

@@ -0,0 +1,30 @@
<template>
<div class="d-flex align-center justify-center fill-height">
<v-card class="pa-6 text-center" max-width="400">
<v-card-text>
<v-progress-circular indeterminate color="primary" class="mb-4" />
<h2 class="text-xl font-bold">Redirecting...</h2>
<p class="opacity-80">Please wait while we redirect you.</p>
</v-card-text>
</v-card>
</div>
</template>
<script lang="ts" setup>
const route = useRoute()
const provider = route.params.provider as string
const query = route.fullPath.split('?')[1] || ''
const apiBase = useSolarNetworkUrl()
const redirectUrl = `${apiBase}/id/auth/callback/${provider}?${query}`
useHead({
title: "Redirecting..."
})
definePageMeta({
layout: "minimal"
})
await navigateTo(redirectUrl, { external: true })
</script>