admin: Replace PKI page by authentication settings, refactor

This commit is contained in:
nemunaire 2025-03-26 12:32:16 +01:00
commit 7e301b8ecb
6 changed files with 114 additions and 33 deletions

View file

@ -34,6 +34,11 @@ func declarePasswordRoutes(router *gin.RouterGroup) {
c.JSON(http.StatusOK, gin.H{"password": passwd})
})
router.GET("/oauth-status", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"secret_defined": OidcSecret != "",
})
})
router.GET("/dex.yaml", func(c *gin.Context) {
cfg, err := genDexConfig()
if err != nil {