diff --git a/pkg/keystone/tokens/handlers.go b/pkg/keystone/tokens/handlers.go index b218529636..9bc94ee470 100644 --- a/pkg/keystone/tokens/handlers.go +++ b/pkg/keystone/tokens/handlers.go @@ -73,6 +73,10 @@ func authenticateTokensV2(ctx context.Context, w http.ResponseWriter, r *http.Re func authenticateTokensV3(ctx context.Context, w http.ResponseWriter, r *http.Request) { _, _, body := appsrv.FetchEnv(ctx, w, r) + if body == nil { + httperrors.InvalidInputError(w, "fail to decode request body") + return + } input := mcclient.SAuthenticationInputV3{} err := body.Unmarshal(&input) if err != nil {