Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Security/Authentication/AdAuthProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ public function authenticate(TokenInterface $token)
$newToken = new $this->tokenClasses['faulty'](
$User,
$token->getCredentials(),
'riper.security.active.directory.user.provider',
$this->config['firewall_id'],
$User->getRoles()
);
} else {
$newToken = new $this->tokenClasses['standard'](
$User,
$token->getCredentials(),
'riper.security.active.directory.user.provider',
$this->config['firewall_id'],
$User->getRoles()
);
}
Expand Down
4 changes: 3 additions & 1 deletion Security/Factory/AdAuthFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ public function __construct()
*
* @param ContainerBuilder $container
* @param string $id The unique id of the firewall
* @param array $config The options array for this listener
* @param array $config The options array for this listener
* @param string $userProviderId The id of the user provider
*
* @return string never null, the id of the authentication provider
*/
protected function createAuthProvider(ContainerBuilder $container, $id, $config, $userProviderId)
{
$config['firewall_id'] = $id;

$providerId = 'security.authentication.provider.riper.active_directory.' . $id;
$container
->setDefinition(
Expand Down