Skip to content

Commit

Permalink
chore: new config to schema json file
Browse files Browse the repository at this point in the history
  • Loading branch information
malosayli committed Nov 5, 2024
1 parent 0b6906c commit 2c790a0
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .schema/version.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@
"$id": "https://github.com/ory/kratos/.schema/versions.config.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"oneOf": [
{
"allOf": [
{
"properties": {
"version": {
"const": "v1.5.0"
}
},
"required": [
"version"
]
},
{
"$ref": "https://raw.githubusercontent.com/nayla-finance/kratos/v1.5.0/.schemastore/config.schema.json"
}
]
},
{
"allOf": [
{
Expand Down
14 changes: 14 additions & 0 deletions .schemastore/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1310,12 +1310,14 @@
"properties": {
"attempt_window": {
"type": "string",
"description": "The time window in which login attempts are considered. After this window, failed attempts are forgotten.",
"pattern": "^([0-9]+(s|m|h))+$",
"default": "5m",
"examples": ["1h", "1m", "30s"]
},
"max_attempts": {
"type": "number",
"description": "The maximum number of failed login attempts (within the attempt window) before a user is blocked.",
"default": "3",
"examples": ["3", "5"]
}
Expand Down Expand Up @@ -2060,6 +2062,9 @@
"properties": {
"email": {
"$ref": "#/definitions/emailCourierTemplate"
},
"sms": {
"$ref": "#/definitions/smsCourierTemplate"
}
},
"required": ["email"]
Expand Down Expand Up @@ -2644,6 +2649,15 @@
},
"required": ["id", "url"]
}
},
"inactivity_threshold_in_months": {
"title": "Identity Inactivity Threshold",
"description": "The period (in months) after which an identity is considered inactive if there are no active sessions for it.",
"type": "integer",
"minimum": 1,
"maximum": 12,
"default": 6,
"examples": [1, 6, 12]
}
},
"required": ["schemas"],
Expand Down
2 changes: 2 additions & 0 deletions embedx/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1310,12 +1310,14 @@
"properties": {
"attempt_window": {
"type": "string",
"description": "The time window in which login attempts are considered. After this window, failed attempts are forgotten.",
"pattern": "^([0-9]+(s|m|h))+$",
"default": "5m",
"examples": ["1h", "1m", "1s"]
},
"max_attempts": {
"type": "number",
"description": "The maximum number of failed login attempts (within the attempt window) before a user is blocked.",
"default": "3",
"examples": ["3", "5"]
}
Expand Down

0 comments on commit 2c790a0

Please sign in to comment.