Skip to content
Snippets Groups Projects
Commit 1aa0a875 authored by Gabriel Zachmann's avatar Gabriel Zachmann
Browse files

fix error on omitted capabilities

parent d13f0a4b
Branches
Tags
No related merge requests found
......@@ -67,10 +67,7 @@ func handleOIDCFlow(ctx *fiber.Ctx) error {
}.Send(ctx)
}
if len(req.Capabilities) == 0 {
return serverModel.Response{
Status: fiber.StatusBadRequest,
Response: api.Error{Error: api.ErrorStrInvalidRequest, ErrorDescription: "capabilities cannot be empty"},
}.Send(ctx)
req.Capabilities = api.Capabilities{api.CapabilityAT}
}
switch req.OIDCFlow {
case model.OIDCFlowAuthorizationCode:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment