Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #164

Merged
merged 13 commits into from
Oct 11, 2024
8 changes: 7 additions & 1 deletion test/adversary_example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,24 @@ package main

import (
"crypto/tls"
"fmt"
"net/http"

"github.com/labstack/echo/v4"
"golang.org/x/crypto/acme"
"golang.org/x/crypto/acme/autocert"
)

var VerifierBase = "https://rare-charter-vancouver-many.trycloudflare.com"

func main() {
e := echo.New()

body := "<button onclick=\"window.open('%v/app/verification-status/');\">Verifier Page (https://rare-charter-vancouver-many.trycloudflare.com)</button><br/>"
body = fmt.Sprintf(body, VerifierBase)

e.GET("/", func(c echo.Context) error {
return c.String(http.StatusOK, "Hello, World!")
return c.HTML(http.StatusOK, body)
})

autoTLSManager := autocert.Manager{
Expand Down
1 change: 1 addition & 0 deletions verifier/api/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ func RegisterServer(req *core.ServerRequest, code *ent.TACode, service *ent.Serv
SetCode(code).
SetPublicKey(req.PublicKey).
SetQuote(req.Quote).
SetMonitorLogID(0).
SetIsActive(false)

_, err := taServerCreate.Save(*verifier.DB.Ctx)
Expand Down
71 changes: 0 additions & 71 deletions verifier/api/server_test.go

This file was deleted.

10 changes: 5 additions & 5 deletions verifier/ent/migrate/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading