diff --git a/src/Infrastructure/Oauth2/Crud/BearOauth2ClientCreator.php b/src/Infrastructure/Oauth2/Crud/BearOauth2ClientCreator.php index 2ae7e3a2..443b61d9 100644 --- a/src/Infrastructure/Oauth2/Crud/BearOauth2ClientCreator.php +++ b/src/Infrastructure/Oauth2/Crud/BearOauth2ClientCreator.php @@ -18,6 +18,7 @@ public static function create( string $oauth2_client_scope = null, string $oauth2_client_redirect_path = null, string $oauth2_user_scope = null, + bool $allow_user_logins = false, ): BearOauth2Client { BearDatabaseService::mustBeProperHttpMethod(verbs: ['POST', 'PUT', 'PATCH', 'DELETE']); @@ -33,6 +34,7 @@ public static function create( $model->oauth2_client_scope = $oauth2_client_scope; $model->oauth2_client_redirect_path = $oauth2_client_redirect_path; $model->oauth2_user_scope = $oauth2_user_scope ?? ''; + $model->allow_user_logins = $allow_user_logins; $model->save(); return $model; diff --git a/src/Infrastructure/Oauth2/Model/BearOauth2Client.php b/src/Infrastructure/Oauth2/Model/BearOauth2Client.php index 2b5c703b..6305272d 100644 --- a/src/Infrastructure/Oauth2/Model/BearOauth2Client.php +++ b/src/Infrastructure/Oauth2/Model/BearOauth2Client.php @@ -38,6 +38,7 @@ * @method static int count(array $columns = ['*']) * @method static bool exists() * + * @property bool $allow_user_logins * @property string $created_at * @property string $updated_at * @property string $oauth2_client_id