Documentation

GetAccessTokenResource extends ResourceBase
in package

Provides a resource to get view modes by entity and bundle.

Tags
RestResource

( id = "get_access_token_resource", label = @Translation("Get access token resource"), uri_paths = { "canonical" = "/o365/get-access-token" } )

Table of Contents

$authenticationService  : AuthenticationService
The authentication service, used to handle all kinds of auth stuff.
create()  : mixed
{@inheritdoc}
get()  : ResourceResponse
Return the current users access token.

Properties

Methods

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
Return values
mixed

get()

Return the current users access token.

public get() : ResourceResponse
Tags
throws
TempStoreException
throws
IdentityProviderException
Return values
ResourceResponse

The HTTP response object.

Search results