Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix: invalid_token bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodor Truffer committed Dec 18, 2020
1 parent b0a7acf commit 4525251
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## [2.2.2]
- Fix: 'invalid_token' bug (access tokens too long)

## [2.2.1]
- Fix Docker-ILIAS log

Expand Down
6 changes: 3 additions & 3 deletions classes/Auth/Token/class.exodToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ class exodToken extends ActiveRecord
*
* @db_has_field true
* @db_fieldtype text
* @db_length 2000
* @db_length 4000
*/
public $access_token;
/**
* @var string
*
* @db_has_field true
* @db_fieldtype text
* @db_length 2000
* @db_length 4000
*/
public $refresh_token;
/**
Expand Down Expand Up @@ -207,4 +207,4 @@ static function returnDbTableName()
{
return self::DB_TABLE_NAME;
}
}
}
2 changes: 1 addition & 1 deletion classes/Client/Item/class.exodItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function loadFromStdClass(stdClass $item) {
break;
case 'parent_reference':
$this->setPath($v->path);
continue;
continue 2;
}

if (property_exists(get_class($this), $internal_key)) {
Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$id = 'exod';
$version = '2.2.1';
$version = '2.2.2';
$ilias_min_version = '6.0';
$ilias_max_version = '6.999';
$responsible = 'studer + raimann ag';
Expand Down
20 changes: 20 additions & 0 deletions sql/dbupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,23 @@
$ilDB->dropTableColumn('cld_cldh_exod_props', 'validation_user_id');
}
?>
<#7>
<?php
global $DIC;
$DIC->database()->modifyTableColumn(
'cld_cldh_exod_token',
'access_token',
[
'type' => 'text',
'length' => 4000,
]
);
$DIC->database()->modifyTableColumn(
'cld_cldh_exod_token',
'refresh_token',
[
'type' => 'text',
'length' => 4000,
]
);
?>

0 comments on commit 4525251

Please sign in to comment.