O365ProfileRestResource
extends ResourceBase
in package
Provides a resource for get the Microsoft 365 profile data.
Tags
Table of Contents
Properties
- $authService : AuthenticationService
- The Microsoft 365 authentication service.
- $getDataService : O365ProfileGetDataService
- The service we use to get user data.
- $request : Request|null
- The page request.
- $authmap : AuthmapInterface
- The externalauth mapping.
Methods
- __construct() : mixed
- create() : mixed
- {@inheritdoc}
- get() : ResourceResponse
- Get the user data from Drupal and Microsoft 365.
Properties
$authService
The Microsoft 365 authentication service.
protected
AuthenticationService
$authService
$getDataService
The service we use to get user data.
protected
O365ProfileGetDataService
$getDataService
$request
The page request.
protected
Request|null
$request
$authmap
The externalauth mapping.
private
AuthmapInterface
$authmap
Methods
__construct()
public
__construct(array<string|int, mixed> $configuration, mixed $plugin_id, mixed $plugin_definition, array<string|int, mixed> $serializer_formats, LoggerInterface $logger, O365ProfileGetDataService $getDataService, AuthenticationService $authenticationService, RequestStack $requestStack, AuthmapInterface $authmap) : mixed
Parameters
- $configuration : array<string|int, mixed>
- $plugin_id : mixed
- $plugin_definition : mixed
- $serializer_formats : array<string|int, mixed>
- $logger : LoggerInterface
- $getDataService : O365ProfileGetDataService
- $authenticationService : AuthenticationService
- $requestStack : RequestStack
- $authmap : AuthmapInterface
create()
{@inheritdoc}
public
static create(ContainerInterface $container, array<string|int, mixed> $configuration, mixed $plugin_id, mixed $plugin_definition) : mixed
Parameters
- $container : ContainerInterface
- $configuration : array<string|int, mixed>
- $plugin_id : mixed
- $plugin_definition : mixed
get()
Get the user data from Drupal and Microsoft 365.
public
get(string $uid) : ResourceResponse
Parameters
- $uid : string
-
The user ID.
Tags
Return values
ResourceResponse —The REST response containing the profile.