Files
opnform-host-nginx/api/app/Integrations/OAuth/Drivers/Contracts/OAuthDriver.php
Chirag Chhatrala da0ea04475 Dynamic OauthDriver scope (#544)
* Dynamic OauthDriver scope

* support migration for mysql

* Refactor default scopes for integrations

* Small UI changes

* fix flet select tooltip

* fix linter

* Fix google token size in DB

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
2024-08-29 13:28:02 +02:00

21 lines
576 B
PHP

<?php
namespace App\Integrations\OAuth\Drivers\Contracts;
use Laravel\Socialite\Contracts\User;
interface OAuthDriver
{
public function getRedirectUrl(): string;
public function setRedirectUrl(string $url): self;
public function setScopes(array $scopes): self;
public function getUser(): User;
public function canCreateUser(): bool;
/**
* Set up all the scopes required by OpnForm for various integrations.
* This method configures the necessary permissions for the current OAuth driver.
*/
public function fullScopes(): self;
}