Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
Packback\Lti1p3\LtiOidcLogin Class Reference

Public Member Functions

 __construct (IDatabase $database, ICache $cache=null, ICookie $cookie=null)
 
 doOidcLoginRedirect ($launch_url, array $request=null)
 Calculate the redirect location to return to based on an OIDC third party initiated login request.
 
 validateOidcLogin ($request)
 

Static Public Member Functions

static new (IDatabase $database, ICache $cache=null, ICookie $cookie=null)
 Static function to allow for method chaining without having to assign to a variable first.
 
static secureRandomString (string $prefix='')
 

Public Attributes

const COOKIE_PREFIX = 'lti1p3_'
 
const ERROR_MSG_ISSUER = 'Could not find issuer'
 
const ERROR_MSG_LAUNCH_URL = 'No launch URL configured'
 
const ERROR_MSG_LOGIN_HINT = 'Could not find login hint'
 

Member Function Documentation

◆ doOidcLoginRedirect()

Packback\Lti1p3\LtiOidcLogin::doOidcLoginRedirect ( $launch_url,
array $request = null )

Calculate the redirect location to return to based on an OIDC third party initiated login request.

Parameters
string$launch_urlURL to redirect back to after the OIDC login. This URL must match exactly a URL white listed in the platform.
array | string$requestAn array of request parameters. If not set will default to $_REQUEST.
Return values
Redirectreturns a redirect object containing the fully formed OIDC login URL

The documentation for this class was generated from the following file: