abstract class base implements service_interface

Base OAuth abstract class that all OAuth services should implement

Properties

protected ServiceInterface $service_provider

External OAuth service provider

Methods

array
get_auth_scope()

Returns an array of the scopes necessary for auth

string
get_external_service_class()

Returns the class of external library service provider that has to be used.

get_external_service_provider()

Returns the external library service provider once it has been set

set_external_service_provider(ServiceInterface $service_provider)

Sets the external library service provider

Details

at line 31
array get_auth_scope()

Returns an array of the scopes necessary for auth

Return Value

array

An array of the required scopes

at line 39
string get_external_service_class()

Returns the class of external library service provider that has to be used.

Return Value

string

If the string is a class, it will register the provided string as a class, which later will be generated as the OAuth external service provider. If the string is not a class, it will use this string, trying to generate a service for the version 2 and 1 respectively: \OAuth\OAuth2\Service\ If the string is empty, it will default to OAuth's standard service classes, trying to generate a service for the version 2 and 1 respectively: \OAuth\OAuth2\Service\Facebook

at line 47
get_external_service_provider()

Returns the external library service provider once it has been set

at line 55
set_external_service_provider(ServiceInterface $service_provider)

Sets the external library service provider

Parameters

ServiceInterface $service_provider