refactor: use htmx instead of dwn for vault client

This commit is contained in:
Prad Nukala
2024-09-25 20:11:30 -04:00
parent 7057332163
commit 0df3762f13
14 changed files with 53 additions and 58 deletions
+16
View File
@@ -0,0 +1,16 @@
package state
import (
"github.com/labstack/echo/v4"
)
func RegisterHandlers(e *echo.Echo) {
g := e.Group("state")
g.POST("/login/:identifier", handleCredentialAssertion)
// g.GET("/discovery", state.GetDiscovery)
g.GET("/jwks", getJWKS)
g.GET("/token", getToken)
g.POST("/:origin/grant/:subject", grantAuthorization)
g.POST("/register/:subject", handleCredentialCreation)
g.POST("/register/:subject/check", checkSubjectIsValid)
}