-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add a local kratos instance and test the application
- Test the github CI to run a local ory kratos instance
- Loading branch information
1 parent
205d9f2
commit 6b8607a
Showing
31 changed files
with
355 additions
and
132 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
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,3 @@ | ||
[submodule "ory_infra/kratos"] | ||
path = ory_infra/kratos | ||
url = https://github.com/ory/kratos.git |
Binary file removed
BIN
-341 KB
.yarn/cache/@ory-client-npm-0.2.0-alpha.60-6aa2b130c4-34907bd665.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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 was deleted.
Oops, something went wrong.
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,6 @@ | ||
# Running Ory Kratos locally for AletheiaFact.org | ||
|
||
|
||
``` | ||
docker-compose -f ./kratos/quickstart.yml -f ./quickstart-aletheiafact.yml up --build --force-recreate | ||
``` |
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,48 @@ | ||
{ | ||
"$id": "https://schemas.ory.sh/presets/kratos/identity.email.schema.json", | ||
"title": "Person", | ||
"type": "object", | ||
"properties": { | ||
"traits": { | ||
"type": "object", | ||
"properties": { | ||
"email": { | ||
"type": "string", | ||
"format": "email", | ||
"title": "E-Mail", | ||
"ory.sh/kratos": { | ||
"credentials": { | ||
"password": { | ||
"identifier": true | ||
}, | ||
"webauthn": { | ||
"identifier": true | ||
}, | ||
"totp": { | ||
"account_name": true | ||
} | ||
}, | ||
"recovery": { | ||
"via": "email" | ||
}, | ||
"verification": { | ||
"via": "email" | ||
} | ||
}, | ||
"maxLength": 320 | ||
}, | ||
"user_id": { | ||
"type": "string" | ||
}, | ||
"role": { | ||
"type": "object" | ||
} | ||
}, | ||
"required": [ | ||
"email", | ||
"user_id" | ||
], | ||
"additionalProperties": false | ||
} | ||
} | ||
} |
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,99 @@ | ||
version: v0.13.0 | ||
|
||
dsn: memory | ||
|
||
serve: | ||
public: | ||
base_url: http://127.0.0.1:4433/ | ||
cors: | ||
enabled: true | ||
|
||
admin: | ||
base_url: http://kratos:4434/ | ||
|
||
selfservice: | ||
default_browser_return_url: http://127.0.0.1:4455/ | ||
allowed_return_urls: | ||
- http://127.0.0.1:4455 | ||
- http://127.0.0.1:3000 | ||
|
||
methods: | ||
password: | ||
enabled: true | ||
totp: | ||
config: | ||
issuer: Kratos | ||
enabled: true | ||
lookup_secret: | ||
enabled: true | ||
link: | ||
enabled: true | ||
code: | ||
enabled: true | ||
|
||
flows: | ||
error: | ||
ui_url: http://127.0.0.1:4455/error | ||
|
||
settings: | ||
ui_url: http://127.0.0.1:4455/settings | ||
privileged_session_max_age: 15m | ||
required_aal: highest_available | ||
|
||
recovery: | ||
enabled: true | ||
ui_url: http://127.0.0.1:4455/recovery | ||
use: code | ||
|
||
verification: | ||
enabled: true | ||
ui_url: http://127.0.0.1:4455/verification | ||
use: code | ||
after: | ||
default_browser_return_url: http://127.0.0.1:4455/ | ||
|
||
logout: | ||
after: | ||
default_browser_return_url: http://127.0.0.1:3000/login | ||
|
||
login: | ||
ui_url: http://127.0.0.1:3000/login | ||
lifespan: 10m | ||
|
||
registration: | ||
lifespan: 10m | ||
ui_url: http://127.0.0.1:3000/sign-up | ||
after: | ||
password: | ||
hooks: | ||
- hook: session | ||
- hook: show_verification_ui | ||
|
||
log: | ||
level: debug | ||
format: text | ||
leak_sensitive_values: true | ||
|
||
secrets: | ||
cookie: | ||
- PLEASE-CHANGE-ME-I-AM-VERY-INSECURE | ||
cipher: | ||
- 32-LONG-SECRET-NOT-SECURE-AT-ALL | ||
|
||
ciphers: | ||
algorithm: xchacha20-poly1305 | ||
|
||
hashers: | ||
algorithm: bcrypt | ||
bcrypt: | ||
cost: 8 | ||
|
||
identity: | ||
default_schema_id: default | ||
schemas: | ||
- id: default | ||
url: file:///etc/config/kratos/identity.schema.json | ||
|
||
courier: | ||
smtp: | ||
connection_uri: smtps://test:test@mailslurper:1025/?skip_ssl_verify=true |
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,28 @@ | ||
version: '3.7' | ||
|
||
services: | ||
kratos-migrate: | ||
volumes: | ||
- type: bind | ||
# source: /home/runner/work/aletheia/aletheia/ory_infra/config | ||
source: /host_mnt/Users/msantos/workspace/aletheia_fact/aletheia/ory_infra/config | ||
target: /etc/config/kratos | ||
|
||
kratos-selfservice-ui-node: | ||
ports: | ||
- "4455:4455" | ||
environment: | ||
- PORT=4455 | ||
- SECURITY_MODE= | ||
- KRATOS_BROWSER_URL=http://127.0.0.1:4433/ | ||
|
||
kratos: | ||
volumes: | ||
- type: volume | ||
source: kratos-sqlite | ||
target: /var/lib/sqlite | ||
read_only: false | ||
- type: bind | ||
# source: /home/runner/work/aletheia/aletheia/ory_infra/config | ||
source: /host_mnt/Users/msantos/workspace/aletheia_fact/aletheia/ory_infra/config | ||
target: /etc/config/kratos |
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,49 @@ | ||
version: '3.7' | ||
services: | ||
kratos-migrate: | ||
image: oryd/kratos:v0.13.0 | ||
environment: | ||
- DSN=sqlite:///var/lib/sqlite/db.sqlite?_fk=true&mode=rwc | ||
volumes: | ||
- type: volume | ||
source: kratos-sqlite | ||
target: /var/lib/sqlite | ||
read_only: false | ||
- type: bind | ||
source: ./kratos/contrib/quickstart/kratos/email-password | ||
target: /etc/config/kratos | ||
command: -c /etc/config/kratos/kratos.yml migrate sql -e --yes | ||
restart: on-failure | ||
kratos-selfservice-ui-node: | ||
image: oryd/kratos-selfservice-ui-node:v0.13.0 | ||
environment: | ||
- KRATOS_PUBLIC_URL=http://kratos:4433/ | ||
- KRATOS_BROWSER_URL=http://127.0.0.1:4433/ | ||
restart: on-failure | ||
kratos: | ||
depends_on: | ||
- kratos-migrate | ||
image: oryd/kratos:v0.13.0 | ||
ports: | ||
- '4433:4433' # public | ||
- '4434:4434' # admin | ||
restart: unless-stopped | ||
environment: | ||
- DSN=sqlite:///var/lib/sqlite/db.sqlite?_fk=true | ||
- LOG_LEVEL=trace | ||
command: serve -c /etc/config/kratos/kratos.yml --dev --watch-courier | ||
volumes: | ||
- type: volume | ||
source: kratos-sqlite | ||
target: /var/lib/sqlite | ||
read_only: false | ||
- type: bind | ||
source: ./kratos/contrib/quickstart/kratos/email-password | ||
target: /etc/config/kratos | ||
mailslurper: | ||
image: oryd/mailslurper:latest-smtps | ||
ports: | ||
- '4436:4436' | ||
- '4437:4437' | ||
volumes: | ||
kratos-sqlite: |
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
Oops, something went wrong.