feat : Ajout expression de réecriture du subject paramétrable
Some checks reported warnings
Cadoles/hydra-sql/pipeline/head This commit is unstable
Cadoles/hydra-sql/pipeline/pr-develop This commit is unstable

This commit is contained in:
2024-07-24 16:41:22 +02:00
parent 769e7ed59e
commit daa5eaaa63
8 changed files with 447 additions and 356 deletions

View File

@ -12,6 +12,7 @@ class SQLLoginRequest
public const PASSWORD_COLUMN_NAME = 'password_column_name';
public const PASSWORD_NEED_UPGRADE = 'password_need_upgrade';
public const TABLE_NAME = 'table_name';
public const SUBJECT_REWRITE_EXPRESSION = 'subject_rewrite_expression';
protected array $config;
protected string $dsn;
@ -66,6 +67,11 @@ class SQLLoginRequest
return $this->config[self::DATA_TO_FETCH];
}
public function getSubjectRewriteExpression(): ?string
{
return $this->config[self::SUBJECT_REWRITE_EXPRESSION];
}
public function getRequestScope()
{
$scope = '';