Microsoft 365 Connector

O365ProfileRestResource extends ResourceBase
in package

Provides a resource for get the Microsoft 365 profile data.

Tags
RestResource

( id = "o365_profile_rest_status", label = @Translation("Microsoft 365 Connector - Profile status"), uri_paths = { "canonical" = "/o365/profile/user_status/{uid}", } )

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

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
throws
TempStoreException
throws
GuzzleException
throws
IdentityProviderException
throws
GraphException
Return values
ResourceResponse

The REST response containing the profile.

Loading…
On this page

Search results