Skip to content

Releases: ristekusdi/sso-php

v1.11

27 Jun 01:48
d732861
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.10.1...v1.11

v1.10.1

27 May 05:38
21a549f
Compare
Choose a tag to compare

Add support PHP 8.1

Full Changelog: v1.10...v1.10.1

v1.10

27 May 05:36
f0f2cfc
Compare
Choose a tag to compare

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

19 Mar 03:46
37b6089
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.9.4...v1.9.5

v1.9.4

15 Mar 04:49
3d09bfe
Compare
Choose a tag to compare

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

15 Mar 04:18
a272118
Compare
Choose a tag to compare

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

14 Mar 03:58
Compare
Choose a tag to compare

Full Changelog: v1.9.1...v1.9.2

v1.9.1

29 Jan 03:11
83ad33d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.9...v1.9.1

v1.9

18 Jan 05:46
2887f3f
Compare
Choose a tag to compare

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

31 Jul 04:13
fe83c2c
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.8.3...v1.8.4