mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
17 lines
442 B
Go
17 lines
442 B
Go
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)
|
|
}
|