tests: add tests for oidc controller

This commit is contained in:
Stavros
2026-03-26 16:50:34 +02:00
parent 8eeb0b9e87
commit 5219d5c2be
3 changed files with 430 additions and 242 deletions

View File

@@ -235,7 +235,7 @@ func (controller *OIDCController) Token(c *gin.Context) {
if !ok {
tlog.App.Error().Msg("Missing authorization header")
c.Header("www-authenticate", "basic")
c.Header("www-authenticate", `Basic realm="Tinyauth OIDC Token Endpoint"`)
c.JSON(400, gin.H{
"error": "invalid_client",
})