-
Notifications
You must be signed in to change notification settings - Fork 34
functions_modules_oauth
Daniel Spors edited this page Feb 14, 2023
·
1 revision
Initializes the OAuth module.
Definition: public function oauth_init()
Returns: void
Starts OAuth process.
Definition: public function oauth_authorize($local_id, $provider_name, $provider_config)
Returns: void
Parameters:
-
mixed $local_id
Local user identifier -
string $provider_name
Name of the OAuth provider to be used -
array $provider_config
Provider specific config (key-value-pairs)
Add an OAuth provider config.
Definition: public function oauth_add_config($provider_name, $client_id, $client_secret, $options)
Returns: void
Parameters:
-
string $provider_name
Name of the OAuth provider -
string $client_id
Client ID -
string $client_secret
Client Secret -
array $options
More (optional) options