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

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

No files matched your search

+3 -3
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);
}
}
}