This commit is contained in:
Adrien Bouvais 2024-05-26 12:15:08 +02:00
parent 10add11ba2
commit 8e3714028d
2 changed files with 4 additions and 3 deletions

3
_commands.md Normal file
View File

@ -0,0 +1,3 @@
docker build -t mrbounty1/jade:jadeAlpha1 .
docker push mrbounty1/jade:jadeAlpha1

View File

@ -32,7 +32,7 @@ type TokenResponse struct {
ProviderToken string `json:"provider_token"`
}
const EDGEDB_AUTH_BASE_URL = "http://127.0.0.1:10700/db/main/ext/auth"
const EDGEDB_AUTH_BASE_URL = "https://jade-hackathon--mrbounty.c-40.i.aws.edgedb.cloud/db/main/ext/auth"
func getGoogleUserProfile(providerToken string) (string, string, string) {
// Fetch the discovery document
@ -143,7 +143,6 @@ func handleUiSignIn(c *fiber.Ctx) error {
HTTPOnly: true,
Path: "/",
Secure: true,
SameSite: "Strict",
})
return c.Redirect(fmt.Sprintf("%s/ui/signup?challenge=%s", EDGEDB_AUTH_BASE_URL, challenge), fiber.StatusTemporaryRedirect)
@ -185,7 +184,6 @@ func handleCallbackSignup(c *fiber.Ctx) error {
HTTPOnly: true,
Path: "/",
Secure: true,
SameSite: "Strict",
})
// Get the issuer of the identity