2024-08-12 12:24:17 +00:00
|
|
|
export default defineEventHandler((event) => {
|
|
|
|
const config = useRuntimeConfig()
|
|
|
|
|
|
|
|
return {
|
|
|
|
"authorization_endpoint": `${config.public.siteUrl}/auth/authorize`,
|
|
|
|
"grant_types_supported": [
|
|
|
|
"authorization_code",
|
|
|
|
"implicit",
|
|
|
|
"refresh_token",
|
|
|
|
],
|
|
|
|
"id_token_signing_alg_values_supported": [
|
|
|
|
"HS512",
|
|
|
|
],
|
2024-08-12 13:17:40 +00:00
|
|
|
"issuer": config.public.siteUrl,
|
2024-08-12 12:24:17 +00:00
|
|
|
"response_types_supported": [
|
|
|
|
"code",
|
|
|
|
"token",
|
|
|
|
],
|
|
|
|
"subject_types_supported": [
|
|
|
|
"public",
|
|
|
|
],
|
2024-08-17 15:56:03 +00:00
|
|
|
"token_endpoint": `${config.public.solarNetworkApi}/cgi/id/auth/token`,
|
2024-08-12 12:24:17 +00:00
|
|
|
"token_endpoint_auth_methods_supported": [
|
|
|
|
"client_secret_post",
|
|
|
|
],
|
|
|
|
"token_endpoint_auth_signing_alg_values_supported": [
|
|
|
|
"HS512",
|
|
|
|
],
|
2024-08-17 15:56:03 +00:00
|
|
|
"userinfo_endpoint": `${config.public.solarNetworkApi}/cgi/id/users/me`,
|
2024-08-12 12:24:17 +00:00
|
|
|
}
|
|
|
|
})
|