Skip to content

Commit

Permalink
HMS-2595 fix: GET signing_keys dummy
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tiran committed Sep 28, 2023
1 parent cbe1388 commit adb86b0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/handler/impl/keys_handler.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit adb86b0

Please sign in to comment.