diff --git a/.gitignore b/.gitignore index 4840934..d6a2cdb 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ nymeria # Exclude the config file config.yaml +/config/kratos.yml # miscellaneous .vscode/ diff --git a/config.sample.yaml b/config.sample.yaml index 69d2cfd..0ad0501 100644 --- a/config.sample.yaml +++ b/config.sample.yaml @@ -1,8 +1,8 @@ env: dev # dev|prod url: - kratos_url: "http://localhost:4433" - admin_kratos_url: "http://localhost:4434" + kratos_url: "http://kratos:4433" + admin_kratos_url: "http://kratos:4434" domain: "https://someaddress.com" diff --git a/config/kratos.yml b/config/example.kratos.yml similarity index 95% rename from config/kratos.yml rename to config/example.kratos.yml index 9400223..8162cc3 100644 --- a/config/kratos.yml +++ b/config/example.kratos.yml @@ -90,4 +90,4 @@ identity: url: file:///etc/config/kratos/identity.schema.json courier: smtp: - connection_uri: smtps://accounts:sdslabs_is_here@mail.sdslabs.co:465/ + connection_uri: diff --git a/docker-compose.yml b/docker-compose.yml index 6643326..ac5b371 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,7 +19,7 @@ services: depends_on: - db kratos-migrate: - image: oryd/kratos:v0.9.0-alpha.2 + image: oryd/kratos:v0.9.0-alpha.3 environment: - DSN=sqlite:///var/lib/sqlite/db.sqlite?_fk=true&mode=rwc volumes: @@ -35,7 +35,7 @@ services: kratos: depends_on: - kratos-migrate - image: oryd/kratos:latest + image: oryd/kratos:v0.9.0-alpha.3 restart: unless-stopped environment: - DSN=sqlite:///var/lib/sqlite/db.sqlite?_fk=true diff --git a/pkg/wrapper/kratos/login/login.go b/pkg/wrapper/kratos/login/login.go index bc2fa5c..d3b9775 100644 --- a/pkg/wrapper/kratos/login/login.go +++ b/pkg/wrapper/kratos/login/login.go @@ -10,7 +10,7 @@ import ( func InitializeLoginFlowWrapper(aal string, cookie string) (string, string, string, error) { refresh := false // bool | Refresh a login session If set to true, this will refresh an existing login session by asking the user to sign in again. This will reset the authenticated_at time of the session. (optional) - returnTo := "http://localhost:4455/ping" // string | The URL to return the browser to after the flow was completed. (optional) + returnTo := "" // string | The URL to return the browser to after the flow was completed. (optional) apiClient := client.NewAPIClient(config.KratosClientConfig) diff --git a/pkg/wrapper/kratos/recovery/recovery.go b/pkg/wrapper/kratos/recovery/recovery.go index b8c3476..413224d 100644 --- a/pkg/wrapper/kratos/recovery/recovery.go +++ b/pkg/wrapper/kratos/recovery/recovery.go @@ -12,7 +12,7 @@ import ( func InitializeRecoveryFlowWrapper() (string, string, string, error) { - returnTo := "http://localhost:4455/ping" // string | The URL to return the browser to after the flow was completed. (optional) + returnTo := "" // string | The URL to return the browser to after the flow was completed. (optional) apiClient := client.NewAPIClient(config.KratosClientConfig) diff --git a/pkg/wrapper/kratos/registration/registration.go b/pkg/wrapper/kratos/registration/registration.go index 943e13c..37e296e 100644 --- a/pkg/wrapper/kratos/registration/registration.go +++ b/pkg/wrapper/kratos/registration/registration.go @@ -12,7 +12,7 @@ import ( ) func InitializeRegistrationFlowWrapper() (string, string, string, error) { - returnTo := "http://localhost:4455/ping" + returnTo := "" apiClient := client.NewAPIClient(config.KratosClientConfig) resp, r, err := apiClient.V0alpha2Api.InitializeSelfServiceRegistrationFlowForBrowsers(context.Background()).ReturnTo(returnTo).Execute() diff --git a/pkg/wrapper/kratos/settings/settings.go b/pkg/wrapper/kratos/settings/settings.go index d861671..a81a3c4 100644 --- a/pkg/wrapper/kratos/settings/settings.go +++ b/pkg/wrapper/kratos/settings/settings.go @@ -13,7 +13,7 @@ import ( func InitializeSettingsFlowWrapper(session_cookie string, recovery_cookie string) (client.SelfServiceSettingsFlow, string, error) { - returnTo := "http://localhost:4455/ping" // string | The URL to return the browser to after the flow was completed. (optional) + returnTo := "" // string | The URL to return the browser to after the flow was completed. (optional) var cookie string