tests: add tests for skip consent

This commit is contained in:
Stavros
2026-08-27 17:22:15 +03:00
parent 766a7287e3
commit 0da39c93b0
2 changed files with 285 additions and 73 deletions
+1 -1
View File
@@ -315,7 +315,7 @@ func (controller *OIDCController) skipConsent(c *gin.Context) {
controller.log.App.Debug().Str("client", authorizeReq.ClientID).Str("user", userContext.GetUsername()).Msg("User consented to OIDC")
if authorizeReq.Prompt == service.OIDCPromptNone.String() {
if authorizeReq.Prompt == service.OIDCPromptLogin.String() {
c.JSON(200, SkipConsentResponse{
SkipConsent: false,
})