Свойство | Тип | Описание | |
---|---|---|---|
$globalConfig | ZF\Configuration\ConfigResource | ||
$localConfig | ZF\Configuration\ConfigResource | ||
$modules |
Метод | Описание | |
---|---|---|
__construct ( ZF\Configuration\ConfigResource $globalConfig, ZF\Configuration\ConfigResource $localConfig, |
||
arrayDiffRecursive ( mixed $a, mixed $b ) : integer | Perform a recursive array diff | |
create ( array $authenticationConfig ) : |
Create authentication configuration | |
createAuthenticationAdapter ( array $adapter ) : array | Create authentication adapter for version 2 | |
fetch ( ) : |
Fetch configuration details for authentication | |
fetchAllAuthenticationAdapter ( ) : array | Fetch configuration details for auth adapters | |
fetchAuthenticationAdapter ( string $name ) : array | false | Fetch configuration details for specific auth adapter name | |
fromOAuth2RegexToArray ( array $config ) : array | Return the OAuth2 urls as array from the regex string | |
getAuthenticationMap ( string $module, integer | false $version = false ) : string | false | Get the authentication map specified by $module and $version | |
remove ( ) : true | Remove authentication | |
removeAuthenticationAdapter ( string $name ) : boolean | Remove the authentication adapter specified | |
removeAuthenticationMap ( string $module, integer $version = null ) : boolean | Remove the authentication Map for a specific $module and $version | |
removeOldAuthentication ( ) : true | Remove authentication | |
saveAuthenticationMap ( string $auth, string $module, integer $version = null ) : boolean | Save the authentication Map for a specific $module and $version | |
transformAuthPerApis ( ) : boolean | string | This function transform the old authentication system to the new one based on APIs defined. It reads the old configuration and generates an authentication mapping for each API and version. | |
update ( array $authenticationConfig ) : |
Update authentication configuration | |
updateAuthenticationAdapter ( string $name, array $adapter ) : array | Update authentication adapter data |
Метод | Описание | |
---|---|---|
checkAuthenticationAdapterData ( array $adapter ) : array | Check and return the input data for version 2 | |
createAuthenticationEntityFromConfig ( array $config ) : |
Create an AuthenticationEntity based on the configuration given | |
createMongoDSN ( $dsn ) : MongoClient | ||
createPdoDSN ( $dsn, $username, $password ) : PDO | ||
fetchHttpAuthConfiguration ( array $config ) : array | false | Fetch HTTP Authentication configuration | |
fetchOAuth2Configuration ( array $config ) : array | false | Fetch all OAuth2 configuration from global and local files | |
loadAuthenticationAdapterFromConfig ( string $name, array $config ) : array | Load authentication data from configuration version 2 Since Apigility 1.1 | |
patchHttpAuthConfig ( |
Patch the HTTP Authentication configuration | |
patchOAuth2Config ( |
Patch the OAuth2 configuration | |
removeOAuth2Route ( string $url ) : boolean | Remove a url from OAuth2 route | |
removeSensitiveConfig ( array $config ) : array | Remove sensitive information from the configuration | |
saveAuthenticationAdapter ( array $adapter ) : true | Add a new authentication adapter in local config | |
updateOAuth2Route ( string $url ) : void | Update the OAuth2 route | |
validateDsn ( string $dsn, string $username = null, string $password = null, string $dsnType = AuthenticationEntity::DSN_PDO ) : boolean | Validate a DSN |
public __construct ( ZF\Configuration\ConfigResource $globalConfig, ZF\Configuration\ConfigResource $localConfig, |
||
$globalConfig | ZF\Configuration\ConfigResource | |
$localConfig | ZF\Configuration\ConfigResource | |
$modules |
protected checkAuthenticationAdapterData ( array $adapter ) : array | ||
$adapter | array | |
Результат | array |
public createAuthenticationAdapter ( array $adapter ) : array | ||
$adapter | array | |
Результат | array |
protected createAuthenticationEntityFromConfig ( array $config ) : |
||
$config | array | |
Результат |
protected createMongoDSN ( $dsn ) : MongoClient | ||
$dsn | ||
Результат | MongoClient |
protected createPdoDSN ( $dsn, $username, $password ) : PDO | ||
$dsn | ||
$username | ||
$password | ||
Результат | PDO |
public fetch ( ) : |
||
Результат |
public fetchAllAuthenticationAdapter ( ) : array | ||
Результат | array |
public fetchAuthenticationAdapter ( string $name ) : array | false | ||
$name | string | |
Результат | array | false |
protected fetchHttpAuthConfiguration ( array $config ) : array | false | ||
$config | array | |
Результат | array | false |
protected fetchOAuth2Configuration ( array $config ) : array | false | ||
$config | array | |
Результат | array | false |
public fromOAuth2RegexToArray ( array $config ) : array | ||
$config | array | |
Результат | array |
protected patchHttpAuthConfig ( |
||
$entity | ||
$global | array | |
$local | array |
public removeAuthenticationAdapter ( string $name ) : boolean | ||
$name | string | |
Результат | boolean |
protected removeOAuth2Route ( string $url ) : boolean | ||
$url | string | |
Результат | boolean |
public removeOldAuthentication ( ) : true | ||
Результат | true |
protected removeSensitiveConfig ( array $config ) : array | ||
$config | array | |
Результат | array |
protected saveAuthenticationAdapter ( array $adapter ) : true | ||
$adapter | array | |
Результат | true |
public transformAuthPerApis ( ) : boolean | string | ||
Результат | boolean | string | Boolean false if nothing was performed; string adapter name otherwise. |
protected updateOAuth2Route ( string $url ) : void | ||
$url | string | |
Результат | void |
protected ConfigResource,ZF\Configuration $globalConfig | ||
Результат | ZF\Configuration\ConfigResource |
protected ConfigResource,ZF\Configuration $localConfig | ||
Результат | ZF\Configuration\ConfigResource |