feat(oauth): set redirect uri as optional and add default value (#5760)

This commit is contained in:
Arnaud Dezandee
2025-05-20 14:35:39 +02:00
committed by GitHub
parent 7a0954fa77
commit 587a927b8b
3 changed files with 8 additions and 4 deletions

View File

@@ -25,11 +25,11 @@ class OauthSetting extends Model
{
switch ($this->provider) {
case 'azure':
return filled($this->client_id) && filled($this->client_secret) && filled($this->redirect_uri) && filled($this->tenant);
return filled($this->client_id) && filled($this->client_secret) && filled($this->tenant);
case 'authentik':
return filled($this->client_id) && filled($this->client_secret) && filled($this->redirect_uri) && filled($this->base_url);
return filled($this->client_id) && filled($this->client_secret) && filled($this->base_url);
default:
return filled($this->client_id) && filled($this->client_secret) && filled($this->redirect_uri);
return filled($this->client_id) && filled($this->client_secret);
}
}
}