UserLoginController
class UserLoginController extends ControllerBase
UserLoginController. Used when returned from the callback.
This creates/updates the user and logs in the Drupal user.
Properties
| protected AuthenticationService | $authenticationService | Drupal\o365\AuthenticationService definition. |
|
| protected ExternalAuth | $externalAuth | The external auth service. |
|
| protected GraphService | $graphService | Drupal\o365\GraphService definition. |
Methods
__construct(GraphService $o365_graph, AuthenticationService $authenticationService, EntityTypeManagerInterface $entity_type_manager, ExternalAuth $externalAuth)
Constructs a new UserLoginController object.
static
create(ContainerInterface $container)
{@inheritdoc}
RedirectResponse
string
sanitizeUsername(string $username)
Sanitize username.
Details
at line 55
__construct(GraphService $o365_graph, AuthenticationService $authenticationService, EntityTypeManagerInterface $entity_type_manager, ExternalAuth $externalAuth)
Constructs a new UserLoginController object.
at line 65
static
create(ContainerInterface $container)
{@inheritdoc}
at line 85
RedirectResponse
login(O365ConnectorInterface $o365_connector)
Login a user.
at line 188
string
sanitizeUsername(string $username)
Sanitize username.