Files
sonr/x/vault/client/htmx/state/routes.go
T

17 lines
442 B
Go
Raw Normal View History

2024-09-24 17:54:33 -04:00
package state
2024-09-18 02:22:17 -04:00
import (
"github.com/labstack/echo/v4"
)
2024-09-24 17:54:33 -04:00
func RegisterHandlers(e *echo.Echo) {
2024-09-18 02:22:17 -04:00
g := e.Group("state")
2024-09-19 02:04:22 -04:00
g.POST("/login/:identifier", handleCredentialAssertion)
2024-09-18 02:22:17 -04:00
// g.GET("/discovery", state.GetDiscovery)
2024-09-19 02:04:22 -04:00
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)
2024-09-18 02:22:17 -04:00
}