17 throw new Exception(
'User ID is missing');
25 if (!isset($entry[
'owner']))
26 throw new Exception(
'OAuth Consumer has no owner. Which means no one is granted access, not even you.');
27 if ($entry[
'owner'] !==
$userid)
28 throw new Exception(
'OAuth Consumer has an owner that is not equal to your userid, hence you are not granted access.');
31 if (array_key_exists(
'editkey', $_REQUEST)) {
32 $entryc =
$store->get(
'consumers', $_REQUEST[
'editkey'],
'');
33 $entry = $entryc[
'value'];
39 'key' =>
SimpleSAML\Utils\Random::generateID(),
40 'secret' =>
SimpleSAML\Utils\Random::generateID(),
48 if (isset(
$_POST[
'submit'])) {
55 $store->set(
'consumers', $entry[
'key'],
'', $entry);
if(empty($userids)) $userid
Attribute-related utility methods.
if(isset($_POST['submit'])) $form
if(array_key_exists('yes', $_REQUEST)) $attributes
requireOwnership($entry, $userid)
static getOptionalConfig($filename='config.php', $configSet='simplesaml')
Load a configuration file from a configuration set.
static getById($authId, $type=null)
Retrieve authentication source.
static getSessionFromRequest()
Retrieves the current session.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.