ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ltiregstart.php File Reference

Go to the source code of this file.

Variables

global $DIC
 
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params = $DIC->http()->wrapper()->query()
 
 $url = ''
 
 $typeId = ''
 
if($params->has('url')) else
 
if($params->has('typeid')) $clientId = ilObjLTIConsumer::getNewClientId()
 
 $scope = ilObjLTIConsumer::REG_TOKEN_OP_NEW_REG
 
if(!empty($typeId)) try
 
 $token
 
 aud
 
 $privateKey = ilObjLTIConsumer::getPrivateKey()
 
 $regToken = Firebase\JWT\JWT::encode($token, $privateKey['key'], 'RS256', $privateKey['kid'])
 

Variable Documentation

◆ $clientId

if ( $params->has( 'typeid')) $clientId = ilObjLTIConsumer::getNewClientId()

Definition at line 46 of file ltiregstart.php.

◆ $DIC

global $DIC

Definition at line 25 of file ltiregstart.php.

◆ $params

if (! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params = $DIC->http()->wrapper()->query()

Definition at line 31 of file ltiregstart.php.

Referenced by ilAccessibilityTableDatabaseDataProvider\__construct(), ilTaxonomyListTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilLMExplorerGUI\__construct(), ilObjTaggingSettingsGUI\__construct(), ilTaxonomyExplorerGUI\__construct(), ilTaggingClassificationProvider\__construct(), ILIAS\Forum\Thread\ForumThreadTableSessionStorage\__construct(), ilRatingCategoryGUI\__construct(), ilTaxMDGUI\__construct(), ilRatingGUI\__construct(), ilObjTaxonomyGUI\__construct(), ilTaggingSlateContentGUI\__construct(), ilTaggingGUI\__construct(), ilNewsItemGUI\__construct(), ilDashboardGUI\__construct(), ilCalendarBlockGUI\__construct(), ilObject2GUI\__construct(), ilLMPresentationGUI\__construct(), ilObjChatroomGUI\_goto(), ilObjLearningSequenceGUI\_goto(), ilPCTableGUI\_renderTable(), ilSoapFunctions\addUserToPositionInOrgUnit(), ilCmiXapiLaunchGUI\buildAuthTokenFetchParam(), nusoap_parser\buildVal(), nusoap_client\call(), ilMediaItem\create(), ilObjectListGUI\createDefaultCommand(), ilPageObjectGUI\displayMedia(), ilStartUpGUI\doSamlAuthentication(), ILIAS\UI\examples\Tree\Expandable\expandable_async_repo(), ilWikiStatGUI\export(), ilCOPageHTMLExport\exportHTMLMOB(), ILIAS\LTIOAuth\OAuthSignatureMethod_HMAC_SHA1\get_name(), ilForum\getAllThreads(), ilObjPortfolio\getAvailablePortfolioLinksForUserIds(), ilPCInteractiveImage\getBackgroundImage(), ilPCTabsGUI\getCaptionForm(), ilObjQuestionPoolListGUI\getCommandLink(), ilObjTestListGUI\getCommandLink(), ilObjLTIConsumer\getCustomParamsArray(), ilSoapFunctions\getEmployeePositionId(), ilImageMapEditorGUI\getImageMapOutput(), ILIAS\OrgUnit\Webservices\SOAP\Base\getInputParams(), ILIAS\Notifications\Model\ilNotificationConfig\getLanguageParameters(), ilCmiXapiLaunchGUI\getLaunchParameters(), ilMediaItem\getLocationSrc(), ilLTIConsumerContentGUI\getLoginLTI13Form(), ilSoapFunctions\getOrgUnitsSimpleXML(), ILIAS\UI\Implementation\Component\ViewControl\Renderer\getPaginationShyButton(), ILIAS\Data\URI\getParameter(), ILIAS\Data\URI\getParameters(), ilSoapFunctions\getPositionIds(), ilSoapFunctions\getPositionTitle(), ilObjLTIConsumer\getProviderCustomParamsArray(), ilSoapFunctions\getSuperiorPositionId(), ilObjSurvey\getSurveyCodesForExport(), ilObjSurvey\getSurveyCodesTableData(), ilForumDraftsDerivedTaskProvider\getTasks(), ilLMGSToolProvider\getToc(), ILIAS\UI\examples\Layout\Page\Standard\getUIContent(), LSUrlBuilder\getURL(), ilSoapFunctions\getUserIdsOfPosition(), ilSoapFunctions\getUserIdsOfPositionAndOrgUnit(), XapiProxy\XapiProxyRequest\handleGetStatementsRequest(), ilLPListOfSettingsGUI\handleLPUsageInfo(), ilLMPresentationGUI\ilMedia(), ilSoapFunctions\importOrgUnitsSimpleXML(), ilTaxonomyClassificationProvider\init(), ilObjLinkResourceGUI\initFormLink(), ilForumTopicTableGUI\initMergeThreadsTable(), ILIAS\Glossary\Export\GlossaryHtmlExport\initScreen(), ILIAS\LearningModule\Export\LMHtmlExport\initScreen(), ilTableGUI\linkbar(), ilSimpleSAMLphpWrapper\logout(), ilGlossaryPresentationGUI\media(), ilPCInteractiveImage\modifyPageContentPostXsl(), ilObjectListGUI\modifyTitleLink(), ilXlsFoParser\parse(), ilICalParser\parseLine(), ilVirusScannerICapRemote\parseResponse(), ilAccessibilityTableGUI\populate(), ilWebDAVMountInstructionsDocumentTableGUI\populate(), ilObjTest\processPrintoutput2FO(), ilSCORM13PlayerGUI\readSharedData(), ilSoapFunctions\removeUserFromPositionInOrgUnit(), ilTableGUI\render(), ilPCTableGUI\renderCell(), ILIAS\UI\Implementation\Component\Menu\Renderer\renderDrilldownMenu(), ilPortfolioPageGUI\renderMyCourses(), SurveySearch\search(), ilObjectListGUI\setDefaultCommandParameters(), ILIAS\UI\Implementation\Component\ViewControl\Renderer\setPaginationBrowseControls(), ilObjMediaPoolGUI\showMedia(), ilPageObjectGUI\showMediaFullscreen(), ilPageObjectGUI\showPage(), URITest\testAppendParameter(), ILIAS\LegalDocuments\test\Provide\ProvideWithdrawalTest\testBeginProcessURL(), DataRendererTest\testDataTableDataRowFromBuilder(), DataTest\testDataTableWithAdditionalParams(), ilMailTest\testPersistingToStage(), ilKSDocumentationGotoLinkTest\testRedirectWithGotoLink(), ilMailTest\testUpdateDraft(), URITest\testWithArrayParameters(), URITest\testWithParameters(), ilMediaItem\update(), ilWikiStatGUI\view(), and ILIAS\Data\URI\withParameter().

◆ $privateKey

◆ $regToken

$regToken = Firebase\JWT\JWT::encode($token, $privateKey['key'], 'RS256', $privateKey['kid'])

Definition at line 63 of file ltiregstart.php.

◆ $scope

◆ $token

$token
Initial value:
= [
"sub" => $DIC->user()->getId()
global $DIC
Definition: ltiregstart.php:25

Definition at line 55 of file ltiregstart.php.

◆ $typeId

$typeId = ''

◆ $url

$url = ''

Definition at line 33 of file ltiregstart.php.

◆ aud

aud
Initial value:
"scope" => $scope,
"iat" => $now,
"exp" => $now + 3600
]
$scope
Definition: ltiregstart.php:47
if($params->has('typeid')) $clientId
Definition: ltiregstart.php:46

Definition at line 57 of file ltiregstart.php.

◆ else

if ( $params->has( 'url')) else
Initial value:
{
ilObjLTIConsumer::sendResponseError(400, "missing required url parameter in request")
static sendResponseError(int $code, string $message, $log=true)

Definition at line 38 of file ltiregstart.php.

◆ try

if (!empty( $typeId)) try
Initial value:
{
$now = time()

Definition at line 53 of file ltiregstart.php.