Add experimental and preliminary policy-driven session limiting when logging in OAuth 2 sessions. (#5221)

This commit is contained in:
Olivier 'reivilibre
2025-11-25 15:24:02 +00:00
committed by GitHub
18 changed files with 309 additions and 23 deletions

View File

@@ -2830,6 +2830,17 @@
"string",
"null"
]
},
"session_limit": {
"description": "Experimental feature to limit the number of application sessions per\n user.\n\n Disabled by default.",
"anyOf": [
{
"$ref": "#/definitions/SessionLimitConfig"
},
{
"type": "null"
}
]
}
}
},
@@ -2863,6 +2874,26 @@
"required": [
"ttl"
]
},
"SessionLimitConfig": {
"description": "Configuration options for the session limit feature",
"type": "object",
"properties": {
"soft_limit": {
"type": "integer",
"format": "uint64",
"minimum": 1
},
"hard_limit": {
"type": "integer",
"format": "uint64",
"minimum": 1
}
},
"required": [
"soft_limit",
"hard_limit"
]
}
}
}