class LoginCallbackController extends ControllerBase

LoginCallbackController. Call when returning from the o365 service.

Properties

protected AuthenticationService $authenticationService

The authentication service, used to handle all kinds of auth stuff.

protected GraphService $graphService

The o365 GraphService.

protected O365LoggerServiceInterface $loggerService

The o365 logger service.

Methods

__construct(AuthenticationService $authenticationService, GraphService $graphService, O365LoggerServiceInterface $loggerService)

Constructs a new LoginController object.

mixed
callback(O365ConnectorInterface $o365_connector, Request $request)

Callback for the login.

static 
create(ContainerInterface $container)

{@inheritdoc}

defaultCallback(Request $request)

The default login callback.

Details

at line 52
__construct(AuthenticationService $authenticationService, GraphService $graphService, O365LoggerServiceInterface $loggerService)

Constructs a new LoginController object.

Parameters

AuthenticationService $authenticationService

The AuthenticationService definition.

GraphService $graphService

The GraphService definition.

O365LoggerServiceInterface $loggerService

The custom logger service for the o365 module.

at line 95
mixed callback(O365ConnectorInterface $o365_connector, Request $request)

Callback for the login.

Parameters

O365ConnectorInterface $o365_connector

The o365 connector.

Request $request

The request.

Return Value

mixed

A redirect to the set URL.

Exceptions

TempStoreException
IdentityProviderException

at line 61
static create(ContainerInterface $container)

{@inheritdoc}

Parameters

ContainerInterface $container

at line 69
defaultCallback(Request $request)

The default login callback.

Parameters

Request $request