SAML-Toolkits / wordpress-saml

OneLogin SAML plugin for Wordpress
MIT License
65 stars 74 forks source link

Error retrieving requestedAuthnContext #12

Closed fralazar closed 8 years ago

fralazar commented 8 years ago

Warning: in_array() expects parameter 2 to be array, string given' in /xxx/wp-content/plugins/onelogin-saml-sso/php/configuration.php:481

And the configuration form stops at:

requestedAuthnContext

showing no options in the multi-select.

pitbulk commented 8 years ago

Let me know if your problem is solved with this commit.

fralazar commented 8 years ago

Thanks that worked! After that i had to change php/lib/Saml2/Response.php at line 57:

        $this->response = base64_decode($response);
        if($this->response === FALSE) {
            $this->response = $response;
        }

Since looks like the response from the SSO is not base64 encoded.