admin: Replace PKI page by authentication settings, refactor
This commit is contained in:
parent
4dcf1218d8
commit
7e301b8ecb
6 changed files with 114 additions and 33 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Reference in a new issue