mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-03-28 09:27:54 +00:00
tests: add tests for oidc controller
This commit is contained in:
@@ -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",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user