Documentation

UserinfoRequest
in package

Generates the Userinfo Request

Linee Guida OpenID Connect in SPID

Table of Contents

__construct()  : UserinfoRequest
creates a new UserinfoRequest instance
send()  : object
send the userinfo request

Methods

__construct()

creates a new UserinfoRequest instance

public __construct(array<string|int, mixed> $config, object $op_metadata[, array<string|int, mixed> $hooks = null ]) : UserinfoRequest
Parameters
$config : array<string|int, mixed>

base configuration

$op_metadata : object

provider metadata

$hooks : array<string|int, mixed> = null

hooks defined list

Tags
throws
Exception
Return values
UserinfoRequest

send()

send the userinfo request

public send(string $userinfo_endpoint, string $access_token) : object
Parameters
$userinfo_endpoint : string

userinfo endpoint of the provider

$access_token : string

access_token needed to access to userinfo endpoint

Tags
throws
Exception
Return values
object

response returned from userinfo endpoint

Search results