Skip to content

Commit

Permalink
change returnTo and add example.kratos.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pratham1729 committed Aug 18, 2024
1 parent 89788b7 commit cf18a15
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ nymeria

# Exclude the config file
config.yaml
/config/kratos.yml

# miscellaneous
.vscode/
Expand Down
4 changes: 2 additions & 2 deletions config.sample.yaml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
2 changes: 1 addition & 1 deletion config/kratos.yml → config/example.kratos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ identity:
url: file:///etc/config/kratos/identity.schema.json
courier:
smtp:
connection_uri: smtps://accounts:[email protected]:465/
connection_uri:
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/wrapper/kratos/login/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion pkg/wrapper/kratos/recovery/recovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion pkg/wrapper/kratos/registration/registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion pkg/wrapper/kratos/settings/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cf18a15

Please sign in to comment.