-
Hi, Also is it possible to have the session lifespan at the schema level so that I can have one schema for mobile devices and one for web/browsers and configure different session lifespans in the same Kratos instance? Thank you for the help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You are right currently you can have only one lifespan set. Both workarounds you proposed are possible:
This works.
This also works. schemas:
- id: customer
url: base64://ewogICIkc2NoZW1hIjogImh0dHA6Ly9qc29uLXNjaGVtYS5vcmcvZHJhZnQtMDcvc2NoZW1hIyIsCiAgInR5cGUiOiAib2JqZWN0IiwKICAicHJvcGVydGllcyI6IHsKICAgICJiYXIiOiB7CiAgICAgICJ0eXBlIjogInN0cmluZyIKICAgIH0KICB9LAogICJyZXF1aXJlZCI6IFsKICAgICJiYXIiCiAgXQp9
- id: employee
url: https://foo.bar.com/path/to/employee.traits.schema.json
- id: employee-v2
url: file://path/to/employee.v2.traits.schema.json So when you e.g. submit a registration flow, you can specify which schema it should use. |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
You are right currently you can have only one lifespan set.
Both workarounds you proposed are possible:
This works.
This also works.
You can configure different identity schemas, e.g.: