프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 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 |