AbstractSingleSignonService
in package
implements
LoggerAwareInterface
Interfaces, Classes and Traits
- LoggerAwareInterface
Table of Contents
- PASSWORD_ENTROPY_SIZE = 1024
- $clientId : mixed
- $clientSecret : mixed
- $logger : LoggerInterface
- $loggerSubsystem : mixed
- $redirectUri : mixed
- __construct() : mixed
- getAuthorizationLink() : mixed
- processAuthorizationCode() : mixed
- setLogger() : void
- determineCountryByLocale() : mixed
- extractIdToken() : array<string|int, mixed>|mixed
- Extracts claims data from encoded JWT data.
- generateRandomBytes() : mixed
- getLogger() : LoggerInterface
- makePassword() : mixed
Constants
PASSWORD_ENTROPY_SIZE
public
mixed
PASSWORD_ENTROPY_SIZE
= 1024
Properties
$clientId
protected
mixed
$clientId
$clientSecret
protected
mixed
$clientSecret
$logger
protected
LoggerInterface
$logger
$loggerSubsystem
protected
mixed
$loggerSubsystem
= ''
$redirectUri
protected
mixed
$redirectUri
Methods
__construct()
public
__construct(mixed $clientId, mixed $clientSecret, mixed $redirectUri) : mixed
Parameters
- $clientId : mixed
- $clientSecret : mixed
- $redirectUri : mixed
Return values
mixed —getAuthorizationLink()
public
abstract getAuthorizationLink() : mixed
Return values
mixed —processAuthorizationCode()
public
abstract processAuthorizationCode(mixed $code) : mixed
Parameters
- $code : mixed
Return values
mixed —setLogger()
public
setLogger(LoggerInterface $logger) : void
Parameters
- $logger : LoggerInterface
Return values
void —determineCountryByLocale()
protected
determineCountryByLocale([mixed $locale = '' ]) : mixed
Parameters
- $locale : mixed = ''
Return values
mixed —extractIdToken()
Extracts claims data from encoded JWT data.
protected
extractIdToken( $idToken) : array<string|int, mixed>|mixed
Returns an array: Array ( [azp] => 123412341234123412341234123412341234123411234.apps.googleusercontent.com [aud] => 123412341234123412341234123412341234123412344.apps.googleusercontent.com [sub] => 111112222233334445555 [email] => john.doe@example.com [email_verified] => 1 [at_hash] => dunegldnuditJDTRENia [iss] => https://accounts.google.com [iat] => 1500553894 [exp] => 1500557494 [name] => John Doe [picture] => https://lh3.googleusercontent.com/somewhere/photo.jpg [given_name] => John [family_name] => Doe [locale] => de )
Parameters
Return values
array<string|int, mixed>|mixed —generateRandomBytes()
protected
generateRandomBytes([mixed $numBytes = 1024 ]) : mixed
Parameters
- $numBytes : mixed = 1024
Return values
mixed —getLogger()
protected
getLogger() : LoggerInterface
Return values
LoggerInterface —makePassword()
protected
makePassword() : mixed