Releases: ristekusdi/sso-php
v1.11
What's Changed
- Fix SSO Service and Stubs for CodeIgniter 3 by @kresnasatya in #20
Full Changelog: v1.10.1...v1.11
v1.10.1
Add support PHP 8.1
Full Changelog: v1.10...v1.10.1
v1.10
BREAKING CHANGE!
Change parameter position of impersonate()
method to remove error message from PHP 8.1.
- impersonate($credentials = array(), $username);
+ impersonate($username, $credentials = array());
Full Changelog: v1.9.5...v1.10
v1.9.5
v1.9.4
Set empty response when change role or change key value because http response is 204. In order to make change role or change key value work, via JavaScript, we need to hack response little bit. Here's the code sample.
document.getElementById('roles').onchange = function() {
fetch('<?php echo site_url('web-session/change-role'); ?>', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Accept': 'application/json',
},
body: request,
credentials: 'same-origin'
})
.then(response => {
if (response.status === 204) return ''; // <= In order to make response work when http code 204
return response.json()
})
.then(data => {
// Do something
})
.catch(error => {
console.error(error)
})
}
More detail please see: whatwg/fetch#113 (comment)
Full Changelog: v1.9.3...v1.9.4
v1.9.3
Please update user()
method in application/libraries/Webguard.php
in CodeIgniter 3.
public function user()
{
$unserialize_session = unserialize($_SESSION['serialize_session']);
foreach ($unserialize_session as $key => $value) {
$this->user->{$key} = $value;
}
return $this;
}
By update this method, the user properties will be set automatically with loop instead you set it manually.
Full Changelog: v1.9.2...v1.9.3
v1.9.2
Full Changelog: v1.9.1...v1.9.2
v1.9.1
v1.9
What's Changed
- upgrade to php 7.4 and remove unnecessary ignore files by @kresnasatya in #17
Full Changelog: v1.8.4...v1.9
v1.8.4
What's Changed
- add http code to error responses by @kresnasatya in #16
Full Changelog: v1.8.3...v1.8.4