fix: assign public key correctly in oidc server

This commit is contained in:
Stavros
2026-05-09 13:56:28 +03:00
parent 4e760e8397
commit 3d9c81d7a0
2 changed files with 4 additions and 5 deletions
+3 -3
View File
@@ -44,7 +44,7 @@ func NewWellKnownController(oidc *service.OIDCService, router *gin.RouterGroup)
func (controller *WellKnownController) OpenIDConnectConfiguration(c *gin.Context) {
if controller.oidc == nil {
c.JSON(500, gin.H{
"status": "500",
"status": 500,
"message": "OIDC service not configured",
})
return
@@ -73,7 +73,7 @@ func (controller *WellKnownController) OpenIDConnectConfiguration(c *gin.Context
func (controller *WellKnownController) JWKS(c *gin.Context) {
if controller.oidc == nil {
c.JSON(500, gin.H{
"status": "500",
"status": 500,
"message": "OIDC service not configured",
})
return
@@ -83,7 +83,7 @@ func (controller *WellKnownController) JWKS(c *gin.Context) {
if err != nil {
c.JSON(500, gin.H{
"status": "500",
"status": 500,
"message": "failed to get JWK",
})
return