mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 18:18:29 +00:00
feat(oauth): set redirect uri as optional and add default value (#5760)
This commit is contained in:
1 parent
7a0954fa77
commit
587a927b8b
3 files changed
+8
-4
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user