From 6a4f2b6869f015baa2e0036feb8f481b46e0ef43 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 4 Jan 2025 18:18:38 +0800 Subject: [PATCH] :bug: Fix openid configuration singing algorithm --- pkg/internal/http/api/well_known_api.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/internal/http/api/well_known_api.go b/pkg/internal/http/api/well_known_api.go index fae1bff..70dcf8d 100644 --- a/pkg/internal/http/api/well_known_api.go +++ b/pkg/internal/http/api/well_known_api.go @@ -2,6 +2,7 @@ package api import ( "fmt" + "git.solsynth.dev/hypernet/passport/pkg/internal/services" "github.com/gofiber/fiber/v2" "github.com/spf13/viper" @@ -20,8 +21,8 @@ func getOidcConfiguration(c *fiber.Ctx) error { "grant_types_supported": []string{"authorization_code", "implicit", "refresh_token"}, "subject_types_supported": []string{"public"}, "token_endpoint_auth_methods_supported": []string{"client_secret_post"}, - "id_token_signing_alg_values_supported": []string{"HS512"}, - "token_endpoint_auth_signing_alg_values_supported": []string{"HS512"}, + "id_token_signing_alg_values_supported": []string{"RS256"}, + "token_endpoint_auth_signing_alg_values_supported": []string{"RS256"}, "jwks_uri": fmt.Sprintf("%s/.well-known/jwks", basepath), }) }