mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-11 13:29:12 +00:00
* feat: add new supported attestation formats to genesis * feat: refactor keyType to keytype enum * refactor: remove unused imports and code * refactor: update main.go to use src package * refactor: move web-related structs from to * refactor: move client middleware package to root * refactor: remove unused IndexedDB dependency * feat: update worker implementation to use * feat: add Caddyfile and Caddy configuration for vault service * refactor(config): move keyshare and address to Motr config * fix: validate service origin in AllocateVault * chore: remove IndexedDB configuration * feat: add support for IPNS-based vault access
23 lines
616 B
Go
23 lines
616 B
Go
package handlers
|
|
|
|
import (
|
|
"github.com/labstack/echo/v4"
|
|
middleware "github.com/onsonr/sonr/internal/dwn/middleware"
|
|
)
|
|
|
|
func RegisterState(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)
|
|
}
|
|
|
|
func RegisterSync(e *echo.Echo) {
|
|
g := e.Group("sync")
|
|
g.Use(middleware.MacaroonMiddleware("test", "test"))
|
|
}
|