feat: auto redirect to the SSO login page

This commit is contained in:
Maël Gangloff
2025-12-07 14:32:48 +01:00
parent dd6c121936
commit dd5dba17fc
9 changed files with 29 additions and 3 deletions

View File

@@ -25,6 +25,8 @@ class Instance
private ?bool $limitedFeatures = null;
private ?bool $ssoAutoRedirect = null;
public function isSsoLogin(): ?bool
{
return $this->oauthEnabled;
@@ -60,4 +62,16 @@ class Instance
return $this;
}
public function getSsoAutoRedirect(): ?bool
{
return $this->ssoAutoRedirect;
}
public function setSsoAutoRedirect(?bool $ssoAutoRedirect): static
{
$this->ssoAutoRedirect = $ssoAutoRedirect;
return $this;
}
}