Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
OidcTokenHandlerFactory example
$node
=
$nodeDefinition
->
getNode
(
)
;
$normalizedConfig
=
$node
->
normalize
(
$config
)
;
return
$node
->
finalize
(
$normalizedConfig
)
;
}
private
function
createTokenHandlerFactories
(
)
: array
{
return
[
new
ServiceTokenHandlerFactory
(
)
,
new
OidcUserInfoTokenHandlerFactory
(
)
,
new
OidcTokenHandlerFactory
(
)
,
]
;
}
}
$extension
->
addAuthenticatorFactory
(
new
HttpBasicFactory
(
)
)
;
$extension
->
addAuthenticatorFactory
(
new
HttpBasicLdapFactory
(
)
)
;
$extension
->
addAuthenticatorFactory
(
new
RememberMeFactory
(
)
)
;
$extension
->
addAuthenticatorFactory
(
new
X509Factory
(
)
)
;
$extension
->
addAuthenticatorFactory
(
new
RemoteUserFactory
(
)
)
;
$extension
->
addAuthenticatorFactory
(
new
CustomAuthenticatorFactory
(
)
)
;
$extension
->
addAuthenticatorFactory
(
new
LoginThrottlingFactory
(
)
)
;
$extension
->
addAuthenticatorFactory
(
new
LoginLinkFactory
(
)
)
;
$extension
->
addAuthenticatorFactory
(
new
AccessTokenFactory
(
[
new
ServiceTokenHandlerFactory
(
)
,
new
OidcUserInfoTokenHandlerFactory
(
)
,
new
OidcTokenHandlerFactory
(
)
,
]
)
)
;
$extension
->
addUserProviderFactory
(
new
InMemoryFactory
(
)
)
;
$extension
->
addUserProviderFactory
(
new
LdapFactory
(
)
)
;
$container
->
addCompilerPass
(
new
AddExpressionLanguageProvidersPass
(
)
)
;
$container
->
addCompilerPass
(
new
AddSecurityVotersPass
(
)
)
;
$container
->
addCompilerPass
(
new
AddSessionDomainConstraintPass
(
)
, PassConfig::TYPE_BEFORE_REMOVING
)
;
$container
->
addCompilerPass
(
new
CleanRememberMeVerifierPass
(
)
)
;
$container
->
addCompilerPass
(
new
RegisterCsrfFeaturesPass
(
)
)
;
$container
->
addCompilerPass
(
new
RegisterTokenUsageTrackingPass
(
)
, PassConfig::TYPE_BEFORE_OPTIMIZATION, 200
)
;
$container
->
addCompilerPass
(
new
RegisterLdapLocatorPass
(
)
)
;