Skip to content

functions_modules_oauth

Daniel Spors edited this page Feb 14, 2023 · 1 revision

Functions in file modules/oauth.php

oauth_init

Initializes the OAuth module.

Definition: public function oauth_init()

Returns: void

oauth_authorize

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)

oauth_add_config

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

Clone this wiki locally