fix
This commit is contained in:
parent
10add11ba2
commit
8e3714028d
3
_commands.md
Normal file
3
_commands.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
|
||||||
|
docker build -t mrbounty1/jade:jadeAlpha1 .
|
||||||
|
docker push mrbounty1/jade:jadeAlpha1
|
4
login.go
4
login.go
@ -32,7 +32,7 @@ type TokenResponse struct {
|
|||||||
ProviderToken string `json:"provider_token"`
|
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) {
|
func getGoogleUserProfile(providerToken string) (string, string, string) {
|
||||||
// Fetch the discovery document
|
// Fetch the discovery document
|
||||||
@ -143,7 +143,6 @@ func handleUiSignIn(c *fiber.Ctx) error {
|
|||||||
HTTPOnly: true,
|
HTTPOnly: true,
|
||||||
Path: "/",
|
Path: "/",
|
||||||
Secure: true,
|
Secure: true,
|
||||||
SameSite: "Strict",
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return c.Redirect(fmt.Sprintf("%s/ui/signup?challenge=%s", EDGEDB_AUTH_BASE_URL, challenge), fiber.StatusTemporaryRedirect)
|
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,
|
HTTPOnly: true,
|
||||||
Path: "/",
|
Path: "/",
|
||||||
Secure: true,
|
Secure: true,
|
||||||
SameSite: "Strict",
|
|
||||||
})
|
})
|
||||||
|
|
||||||
// Get the issuer of the identity
|
// Get the issuer of the identity
|
||||||
|
Loading…
x
Reference in New Issue
Block a user