-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Ory components docker configurations
- Loading branch information
Showing
4 changed files
with
105 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ dsn: memory | |
|
||
serve: | ||
public: | ||
base_url: http://127.0.0.1:4433/ | ||
base_url: http://localhost:4433/ | ||
admin: | ||
base_url: http://kratos:4434/ | ||
|
||
selfservice: | ||
default_browser_return_url: http://127.0.0.1:3000/ | ||
default_browser_return_url: http://localhost:3000/ | ||
allowed_return_urls: | ||
- "http://127.0.0.1:3000/" | ||
- "http://127.0.0.1:8080/" | ||
|
@@ -19,23 +19,6 @@ selfservice: | |
methods: | ||
password: | ||
enabled: true | ||
# oidc: | ||
# config: | ||
# providers: | ||
# # social sign-in for google. This needs to be tied to a google account. values below were added by bastiaan | ||
# - id: google_d292689d # this is `<provider-id>` in the Authorization callback URL. DO NOT CHANGE IT ONCE SET! current google callback: http://127.0.0.1:4433/self-service/methods/oidc/callback/google_d292689d | ||
# provider: google | ||
# client_id: 922854293804-r3fhl9tom6uutcq5c8fm4592l1t6s3mh.apps.googleusercontent.com # Replace this with the Client ID | ||
# client_secret: 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 # Replace this with the Client secret | ||
# issuer_url: https://accounts.google.com # Replace this with the providers issuer URL | ||
# mapper_url: "base64://bG9jYWwgY2xhaW1zID0gewogIGVtYWlsX3ZlcmlmaWVkOiBmYWxzZSwKfSArIHN0ZC5leHRWYXIoJ2NsYWltcycpOwoKewogIGlkZW50aXR5OiB7CiAgICB0cmFpdHM6IHsKICAgICAgW2lmICdlbWFpbCcgaW4gY2xhaW1zICYmIGNsYWltcy5lbWFpbF92ZXJpZmllZCB0aGVuICdlbWFpbCcgZWxzZSBudWxsXTogY2xhaW1zLmVtYWlsLAogICAgfSwKICB9LAp9" | ||
# # currently: GitHub example from: https://www.ory.sh/docs/kratos/social-signin/data-mapping | ||
# # Alternatively, use an URL: | ||
# # mapper_url: https://storage.googleapis.com/abc-cde-prd/9cac9717f007808bf17 | ||
# scope: | ||
# # supported scopes can be found in your providers dev docs | ||
# enabled: true | ||
totp: | ||
config: | ||
issuer: Kratos | ||
|
@@ -45,34 +28,34 @@ selfservice: | |
|
||
flows: | ||
error: | ||
ui_url: http://127.0.0.1:3000/error | ||
ui_url: http://localhost:3000/error | ||
|
||
settings: | ||
ui_url: http://127.0.0.1:3000/settings | ||
|
||
ui_url: http://localhost:3000/settings | ||
recovery: | ||
enabled: true | ||
ui_url: http://127.0.0.1:3000/recovery | ||
use: link | ||
ui_url: http://localhost:3000/recovery | ||
use: code | ||
|
||
verification: | ||
# our current flow necessitates that users reset their password after they activate an account in managementportal, | ||
# this works as verification | ||
ui_url: http://127.0.0.1:3000/verification | ||
ui_url: http://localhost:3000/verification | ||
enabled: true | ||
use: link | ||
use: code | ||
after: | ||
default_browser_return_url: http://127.0.0.1:3000 | ||
default_browser_return_url: http://localhost:3000/consent | ||
|
||
logout: | ||
after: | ||
default_browser_return_url: http://127.0.0.1:3000/login | ||
default_browser_return_url: http://localhost:3000/login | ||
|
||
login: | ||
ui_url: http://127.0.0.1:3000/login | ||
ui_url: http://localhost:3000/login | ||
|
||
registration: | ||
ui_url: http://127.0.0.1:3000/registration | ||
ui_url: http://localhost:3000/registration | ||
after: | ||
password: | ||
hooks: | ||
|
@@ -104,3 +87,6 @@ courier: | |
smtp: | ||
connection_uri: smtps://test:test@mailslurper:1025/?skip_ssl_verify=true&disable_starttls=true | ||
from_address: [email protected] | ||
|
||
oauth2_provider: | ||
url: http://hydra:4445 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function(ctx) { | ||
identity: if std.objectHas(ctx, "identity") then ctx.identity else null, | ||
payload: if std.objectHas(ctx, "flow") && std.objectHas(ctx.flow, "transient_payload") then ctx.flow.transient_payload else null, | ||
cookies: ctx.request_cookies | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters