class O365ProfileRestResource extends ResourceBase

Provides a resource for get the Microsoft 365 profile data.

Properties

protected AuthenticationService $authService

The Microsoft 365 authentication service.

protected O365ProfileGetDataService $getDataService

The service we use to get user data.

protected Request|null $request

The page request.

Methods

__construct(array $configuration, $plugin_id, $plugin_definition, array $serializer_formats, LoggerInterface $logger, O365ProfileGetDataService $getDataService, AuthenticationService $authenticationService, RequestStack $requestStack, AuthmapInterface $authmap)

No description

static 
create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)

{@inheritdoc}

ResourceResponse
get(string $uid)

Get the user data from Drupal and Microsoft 365.

Details

at line 59
__construct(array $configuration, $plugin_id, $plugin_definition, array $serializer_formats, LoggerInterface $logger, O365ProfileGetDataService $getDataService, AuthenticationService $authenticationService, RequestStack $requestStack, AuthmapInterface $authmap)

No description

Parameters

array $configuration
$plugin_id
$plugin_definition
array $serializer_formats
LoggerInterface $logger
O365ProfileGetDataService $getDataService
AuthenticationService $authenticationService
RequestStack $requestStack
AuthmapInterface $authmap

at line 70
static create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)

{@inheritdoc}

Parameters

ContainerInterface $container
array $configuration
$plugin_id
$plugin_definition

at line 99
ResourceResponse get(string $uid)

Get the user data from Drupal and Microsoft 365.

Parameters

string $uid

The user ID.

Return Value

ResourceResponse

The REST response containing the profile.

Exceptions

TempStoreException
GuzzleException
IdentityProviderException
GraphException