forked from ory/kratos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use correct names in WebAuthN dialogs (ory#3215)
- Loading branch information
1 parent
17f0de4
commit 3bc1ff0
Showing
10 changed files
with
235 additions
and
66 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,50 @@ | ||
{ | ||
"$id": "https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Person", | ||
"type": "object", | ||
"properties": { | ||
"traits": { | ||
"type": "object", | ||
"properties": { | ||
"email": { | ||
"type": "string", | ||
"format": "email", | ||
"title": "E-Mail", | ||
"minLength": 3, | ||
"ory.sh/kratos": { | ||
"credentials": { | ||
"password": { | ||
"identifier": true | ||
}, | ||
"webauthn": { | ||
"identifier": true | ||
} | ||
}, | ||
"verification": { | ||
"via": "email" | ||
}, | ||
"recovery": { | ||
"via": "email" | ||
} | ||
} | ||
}, | ||
"name": { | ||
"type": "object", | ||
"properties": { | ||
"first": { | ||
"title": "First Name", | ||
"type": "string" | ||
}, | ||
"last": { | ||
"title": "Last Name", | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"required": ["email"], | ||
"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,107 @@ | ||
version: v0.11.0 | ||
|
||
dsn: memory | ||
|
||
serve: | ||
public: | ||
base_url: http://localhost:4433/ | ||
cors: | ||
enabled: true | ||
admin: | ||
base_url: http://kratos:4434/ | ||
|
||
selfservice: | ||
default_browser_return_url: http://localhost:4455/ | ||
allowed_return_urls: | ||
- http://localhost:4455 | ||
|
||
methods: | ||
password: | ||
enabled: false | ||
totp: | ||
config: | ||
issuer: Kratos | ||
enabled: true | ||
lookup_secret: | ||
enabled: true | ||
link: | ||
enabled: true | ||
code: | ||
enabled: true | ||
webauthn: | ||
config: | ||
passwordless: true | ||
rp: | ||
display_name: Your Application name | ||
# Set 'id' to the top-level domain. | ||
id: localhost | ||
# Set 'origin' to the exact URL of the page that prompts the user to use WebAuthn. You must include the scheme, host, and port. | ||
origin: http://localhost:4455 | ||
enabled: true | ||
|
||
flows: | ||
error: | ||
ui_url: http://localhost:4455/error | ||
|
||
settings: | ||
ui_url: http://localhost:4455/settings | ||
privileged_session_max_age: 15m | ||
required_aal: highest_available | ||
|
||
recovery: | ||
enabled: true | ||
ui_url: http://localhost:4455/recovery | ||
use: code | ||
|
||
verification: | ||
enabled: true | ||
ui_url: http://localhost:4455/verification | ||
use: code | ||
after: | ||
default_browser_return_url: http://localhost:4455/ | ||
|
||
logout: | ||
after: | ||
default_browser_return_url: http://localhost:4455/login | ||
|
||
login: | ||
ui_url: http://localhost:4455/login | ||
lifespan: 10m | ||
|
||
registration: | ||
lifespan: 10m | ||
ui_url: http://localhost:4455/registration | ||
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,18 @@ | ||
version: "3.7" | ||
|
||
services: | ||
kratos-migrate: | ||
volumes: | ||
- type: bind | ||
source: ./contrib/quickstart/kratos/webauthn | ||
target: /etc/config/kratos | ||
|
||
kratos: | ||
volumes: | ||
- type: bind | ||
source: ./contrib/quickstart/kratos/webauthn | ||
target: /etc/config/kratos | ||
|
||
kratos-selfservice-ui-node: | ||
environment: | ||
- KRATOS_BROWSER_URL=http://localhost:4433/ |
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
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
Oops, something went wrong.