From adb86b055c2b815695bd7d5e8ed36dbcf8b7e581 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Thu, 28 Sep 2023 07:33:08 +0200 Subject: [PATCH] HMS-2595 fix: GET signing_keys dummy The GET `signing_keys` route now returns an empty result set instead of an error. The change is necessary to unbreak integration testing of`ipa-hcc`. Signed-off-by: Christian Heimes --- internal/handler/impl/keys_handler.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/internal/handler/impl/keys_handler.go b/internal/handler/impl/keys_handler.go index 21fcaa5e..3050356a 100644 --- a/internal/handler/impl/keys_handler.go +++ b/internal/handler/impl/keys_handler.go @@ -1,12 +1,16 @@ package impl import ( - "errors" + "net/http" "github.com/labstack/echo/v4" "github.com/podengo-project/idmsvc-backend/internal/api/public" ) func (a *application) GetSigningKeys(ctx echo.Context, params public.GetSigningKeysParams) error { - return errors.New("TODO: Not Implemented") + // TODO: Not Implemented + output := public.SigningKeysResponse{ + Keys: []string{}, + } + return ctx.JSON(http.StatusOK, output) }