Tsugi

PnpConnector
in package

Personal Needs and Preferences claim on LTI 1.3 launches.

Same settings as Sakai's lti.pnp.baseurl and lti.pnp.use_email (SAK-50682). When a base URL is configured and the launch user has a guid, the launch carries afapnp-endpoint-service. The @ in that URL is the user guid, or the email when use_email is on and this launch releases an email.

Table of Contents

Constants

CLAIM  : mixed = 'https://purl.imsglobal.org/spec/lti-afapnp/cla...
SCOPE_PNP_READONLY  : mixed = 'https://purl.imsglobal.org/spec/lti-afapnp/sco...

Methods

launchClaim()  : array{afapnp_endpoint_url: string, scopes: array}|null
Claim body, or null when this platform has no PNP base URL or no user guid.
baseUrl()  : string|null
$CFG->lti_pnp_baseurl. Empty and false leave the claim off.
useEmail()  : bool
$CFG->lti_pnp_use_email. Default false. Ignored when the base URL is empty.

Constants

CLAIM

public mixed CLAIM = 'https://purl.imsglobal.org/spec/lti-afapnp/claim/afapnp-endpoint-service'

SCOPE_PNP_READONLY

public mixed SCOPE_PNP_READONLY = 'https://purl.imsglobal.org/spec/lti-afapnp/scope/afapnprecord.readonly'

Methods

launchClaim()

Claim body, or null when this platform has no PNP base URL or no user guid.

public static launchClaim(string|null $userGuid[, string|null $email = null ]) : array{afapnp_endpoint_url: string, scopes: array}|null
Parameters
$userGuid : string|null

Launch user guid, 32 lowercase hex characters.

$email : string|null = null

Launch email. Used only when lti_pnp_use_email is on and this is non-empty.

Return values
array{afapnp_endpoint_url: string, scopes: array}|null

baseUrl()

$CFG->lti_pnp_baseurl. Empty and false leave the claim off.

private static baseUrl() : string|null
Return values
string|null

useEmail()

$CFG->lti_pnp_use_email. Default false. Ignored when the base URL is empty.

private static useEmail() : bool
Return values
bool

        
On this page

Search results