ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 52 of file ltiregstart.php.

◆ $DIC

global $DIC

Definition at line 27 of file ltiregstart.php.

◆ $params

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

Definition at line 33 of file ltiregstart.php.

Referenced by ilAccessibilityTableDatabaseDataProvider\__construct(), ilTermsOfServiceTableDatabaseDataProvider\__construct(), ilTaxonomyListTableGUI\__construct(), php4XSLTProcessor\__construct(), ilTaxonomyTableGUI\__construct(), ilLMExplorerGUI\__construct(), ilObjTaggingSettingsGUI\__construct(), ilTaxonomyExplorerGUI\__construct(), ilTaggingClassificationProvider\__construct(), ilObjTaxonomyGUI\__construct(), ilRatingCategoryGUI\__construct(), ilTaxMDGUI\__construct(), ilRatingGUI\__construct(), ilTaggingSlateContentGUI\__construct(), ilTaggingGUI\__construct(), ilDashboardGUI\__construct(), ilNewsItemGUI\__construct(), ilCalendarBlockGUI\__construct(), ilObject2GUI\__construct(), ilLMPresentationGUI\__construct(), ilObjectGUI\__construct(), ILIAS\LTI\ToolProvider\Http\HttpMessage\__construct(), ilObjChatroomGUI\_goto(), ilObjLearningSequenceGUI\_goto(), ilPCTableGUI\_renderTable(), ILIAS\LTI\ToolProvider\addJWTSignature(), ILIAS\LTI\ToolProvider\addOAuth1Signature(), ilSoapFunctions\addUserToPositionInOrgUnit(), ilCmiXapiLaunchGUI\buildAuthTokenFetchParam(), nusoap_parser\buildVal(), nusoap_client\call(), ilMediaItem\create(), ilObjectListGUI\createDefaultCommand(), ilOrgUnitUserAssignmentGUI\delete(), ilPageObjectGUI\displayMedia(), ILIAS\LTI\ToolProvider\ResourceLink\doOutcomesService(), ilStartUpGUI\doSamlAuthentication(), ILIAS\LTI\ToolProvider\ResourceLink\doSettingService(), ilTestExpressPageObjectGUI\executeCommand(), ILIAS\UI\examples\Tree\Expandable\expandable_async_repo(), ilWikiStatGUI\export(), ilCOPageHTMLExport\exportHTMLMOB(), ILIAS\LTI\ToolProvider\Service\Result\get(), ILIAS\LTIOAuth\OAuthSignatureMethod_HMAC_SHA1\get_name(), ILIAS\LTI\ToolProvider\Service\Result\getAll(), ILIAS\LTI\ToolProvider\Service\LineItem\getAll(), ilForum\getAllThreads(), ilObjPortfolio\getAvailablePortfolioLinksForUserIds(), ilObjQuestionPoolListGUI\getCommandLink(), ilObjTestListGUI\getCommandLink(), ilOrgUnitUserAssignmentGUI\getConfirmationGUI(), ilObjLTIConsumer\getCustomParamsArray(), ilSoapFunctions\getEmployeePositionId(), ilPageObject\getFO(), ilImageMapEditorGUI\getImageMapOutput(), ILIAS\OrgUnit\Webservices\SOAP\Base\getInputParams(), ILIAS\Notifications\Model\ilNotificationConfig\getLanguageParameters(), ilCmiXapiLaunchGUI\getLaunchParameters(), ilLTIConsumerContentGUI\getLoginLTI13Form(), ILIAS\LTI\ToolProvider\ResourceLink\getMemberships(), 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(), ILIAS\LTI\ToolProvider\Util\logRequest(), ilGlossaryPresentationGUI\media(), ilObjectListGUI\modifyTitleLink(), ilXlsFoParser\parse(), ilICalParser\parseLine(), ilVirusScannerICapRemote\parseResponse(), ilAccessibilityTableGUI\populate(), ilTermsOfServiceTableGUI\populate(), ilWebDAVMountInstructionsDocumentTableGUI\populate(), ilObjTest\processPrintoutput2FO(), ilSCORM13PlayerGUI\readSharedData(), ilSoapFunctions\removeUserFromPositionInOrgUnit(), ilTableGUI\render(), ilPCTableGUI\renderCell(), ilPortfolioPageGUI\renderMyCourses(), SurveySearch\search(), ILIAS\LTI\ToolProvider\Tool\sendAuthenticationRequest(), ILIAS\LTI\ToolProvider\Tool\sendRelaunchRequest(), assFlashQuestion\sendToHost(), ilObjectListGUI\setDefaultCommandParameters(), ILIAS\UI\Implementation\Component\ViewControl\Renderer\setPaginationBrowseControls(), assFlashQuestion\setParameters(), ilObjMediaPoolGUI\showMedia(), ilPageObjectGUI\showMediaFullscreen(), ilPageObjectGUI\showPage(), ilChatroomViewGUI\showRoom(), ILIAS\LTI\ToolProvider\signMessage(), ILIAS\LTI\ToolProvider\signParameters(), URITest\testAppendParameter(), 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 69 of file ltiregstart.php.

◆ $scope

◆ $token

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

Definition at line 61 of file ltiregstart.php.

◆ $typeId

$typeId = ''

Definition at line 36 of file ltiregstart.php.

Referenced by ilCronManagerGUI\initEditForm(), and ilObjLTIConsumer\LTISignJWT().

◆ $url

$url = ''

Definition at line 35 of file ltiregstart.php.

◆ aud

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

Definition at line 63 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 44 of file ltiregstart.php.

◆ try

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

Definition at line 59 of file ltiregstart.php.