🐛 Fix openid configuration singing algorithm

This commit is contained in:
LittleSheep 2025-01-04 18:18:38 +08:00
parent 5bdc59b4af
commit 6a4f2b6869

View File

@ -2,6 +2,7 @@ package api
import ( import (
"fmt" "fmt"
"git.solsynth.dev/hypernet/passport/pkg/internal/services" "git.solsynth.dev/hypernet/passport/pkg/internal/services"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"github.com/spf13/viper" "github.com/spf13/viper"
@ -20,8 +21,8 @@ func getOidcConfiguration(c *fiber.Ctx) error {
"grant_types_supported": []string{"authorization_code", "implicit", "refresh_token"}, "grant_types_supported": []string{"authorization_code", "implicit", "refresh_token"},
"subject_types_supported": []string{"public"}, "subject_types_supported": []string{"public"},
"token_endpoint_auth_methods_supported": []string{"client_secret_post"}, "token_endpoint_auth_methods_supported": []string{"client_secret_post"},
"id_token_signing_alg_values_supported": []string{"HS512"}, "id_token_signing_alg_values_supported": []string{"RS256"},
"token_endpoint_auth_signing_alg_values_supported": []string{"HS512"}, "token_endpoint_auth_signing_alg_values_supported": []string{"RS256"},
"jwks_uri": fmt.Sprintf("%s/.well-known/jwks", basepath), "jwks_uri": fmt.Sprintf("%s/.well-known/jwks", basepath),
}) })
} }