Compare commits

...
2 Commits
Author SHA1 Message Date
github-actions[bot] 03f822b117 bump: version 0.5.0 → 0.5.1 2024-10-02 06:15:07 +00:00
Prad Nukala ae56055640 refactor: move Motr API to state package 2024-10-02 02:13:25 -04:00
13 changed files with 23 additions and 13 deletions
+1 -1
View File
@@ -2,6 +2,6 @@
name = "cz_conventional_commits" name = "cz_conventional_commits"
tag_format = "v$version" tag_format = "v$version"
version_scheme = "semver" version_scheme = "semver"
version = "0.5.0" version = "0.5.1"
update_changelog_on_bump = true update_changelog_on_bump = true
major_version_zero = true major_version_zero = true
+6
View File
@@ -1,3 +1,9 @@
## v0.5.1 (2024-10-02)
### Refactor
- move Motr API to state package
## v0.5.0 (2024-10-02) ## v0.5.0 (2024-10-02)
### Feat ### Feat
+1
View File
@@ -0,0 +1 @@
package handlers
+1
View File
@@ -0,0 +1 @@
package handlers
+7 -7
View File
@@ -15,7 +15,7 @@ import (
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
promise "github.com/nlepage/go-js-promise" promise "github.com/nlepage/go-js-promise"
"github.com/onsonr/sonr/cmd/motr/handlers" "github.com/onsonr/sonr/cmd/motr/state"
"github.com/onsonr/sonr/internal/session" "github.com/onsonr/sonr/internal/session"
"github.com/onsonr/sonr/pkg/nebula/pages" "github.com/onsonr/sonr/pkg/nebula/pages"
) )
@@ -30,13 +30,13 @@ func main() {
func registerState(e *echo.Echo) { func registerState(e *echo.Echo) {
g := e.Group("state") g := e.Group("state")
g.POST("/login/:identifier", handlers.HandleCredentialAssertion) g.POST("/login/:identifier", state.HandleCredentialAssertion)
// g.GET("/discovery", state.GetDiscovery) // g.GET("/discovery", state.GetDiscovery)
g.GET("/jwks", handlers.GetJWKS) g.GET("/jwks", state.GetJWKS)
g.GET("/token", handlers.GetToken) g.GET("/token", state.GetToken)
g.POST("/:origin/grant/:subject", handlers.GrantAuthorization) g.POST("/:origin/grant/:subject", state.GrantAuthorization)
g.POST("/register/:subject", handlers.HandleCredentialCreation) g.POST("/register/:subject", state.HandleCredentialCreation)
g.POST("/register/:subject/check", handlers.CheckSubjectIsValid) g.POST("/register/:subject/check", state.CheckSubjectIsValid)
} }
func registerViews(e *echo.Echo) { func registerViews(e *echo.Echo) {
@@ -1,4 +1,4 @@
package handlers package state
import ( import (
"encoding/json" "encoding/json"
+1
View File
@@ -0,0 +1 @@
package state
@@ -1,4 +1,4 @@
package handlers package state
import ( import (
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
+1
View File
@@ -0,0 +1 @@
package state
+3
View File
@@ -0,0 +1,3 @@
FROM scratch
ENTRYPOINT ["/hway"]
COPY hway /
-3
View File
@@ -1,3 +0,0 @@
FROM scratch
ENTRYPOINT ["/motr"]
COPY motr /