feat: implement passkey-based authentication

This commit is contained in:
Prad Nukala
2024-12-10 13:12:08 -05:00
parent dc6f02a000
commit f366dd8cf2
35 changed files with 751 additions and 1039 deletions
-11
View File
@@ -7,7 +7,6 @@ package vault
import (
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/internal/vault/handlers"
session "github.com/onsonr/sonr/internal/vault/session"
"github.com/onsonr/sonr/internal/vault/types"
)
@@ -15,14 +14,4 @@ import (
// RegisterRoutes registers the Decentralized Web Node API routes.
func RegisterRoutes(e *echo.Echo, config *types.Config) {
e.Use(session.Middleware(config))
e.GET("/register/:subject/start", handlers.RegisterSubjectStart)
e.POST("/register/:subject/finish", handlers.RegisterSubjectFinish)
e.GET("/login/:subject/start", handlers.LoginSubjectStart)
e.POST("/login/:subject/finish", handlers.LoginSubjectFinish)
e.GET("/authz/jwks", handlers.GetJWKS)
e.GET("/authz/token", handlers.GetToken)
e.POST("/:origin/grant/:subject", handlers.GrantAuthorization)
}