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

23 lines
622 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-25 19:45:28 -04:00
middleware "github.com/onsonr/sonr/x/vault/client/dwn/middleware"
2024-09-18 02:22:17 -04:00
)
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
}
func RegisterSync(e *echo.Echo) {
g := e.Group("sync")
g.Use(middleware.MacaroonMiddleware("test", "test"))
}