core: use Exception for fallback case in flow_manager

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-07-04 20:05:03 +02:00
parent 47acc0ea90
commit 6a497b32f6
2 changed files with 9 additions and 13 deletions

View File

@ -167,7 +167,7 @@ class SourceFlowManager:
self._logger.warning("Flow non applicable", exc=exc) self._logger.warning("Flow non applicable", exc=exc)
return self.error_handler(exc) return self.error_handler(exc)
# Default case, assume deny # Default case, assume deny
error = ( error = Exception(
_( _(
( (
"Request to authenticate with %(source)s has been denied. Please authenticate " "Request to authenticate with %(source)s has been denied. Please authenticate "

View File

@ -10826,9 +10826,8 @@ paths:
enum: enum:
- confidential - confidential
- public - public
description: |- description: Confidential clients are capable of maintaining the confidentiality
Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
of their credentials. Public clients are incapable.
- in: query - in: query
name: include_claims_in_id_token name: include_claims_in_id_token
schema: schema:
@ -23272,9 +23271,8 @@ components:
client_type: client_type:
allOf: allOf:
- $ref: '#/components/schemas/ClientTypeEnum' - $ref: '#/components/schemas/ClientTypeEnum'
description: |- description: Confidential clients are capable of maintaining the confidentiality
Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
of their credentials. Public clients are incapable.
client_id: client_id:
type: string type: string
maxLength: 255 maxLength: 255
@ -23348,9 +23346,8 @@ components:
client_type: client_type:
allOf: allOf:
- $ref: '#/components/schemas/ClientTypeEnum' - $ref: '#/components/schemas/ClientTypeEnum'
description: |- description: Confidential clients are capable of maintaining the confidentiality
Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
of their credentials. Public clients are incapable.
client_id: client_id:
type: string type: string
minLength: 1 minLength: 1
@ -27738,9 +27735,8 @@ components:
client_type: client_type:
allOf: allOf:
- $ref: '#/components/schemas/ClientTypeEnum' - $ref: '#/components/schemas/ClientTypeEnum'
description: |- description: Confidential clients are capable of maintaining the confidentiality
Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
of their credentials. Public clients are incapable.
client_id: client_id:
type: string type: string
minLength: 1 minLength: 1