Giter VIP home page Giter VIP logo

Comments (2)

danielbachhuber avatar danielbachhuber commented on September 28, 2024

Hi @rimavelez:

Is the Google Apps setup outlined here: https://pantheon.io/docs/wordpress-google-sso/ in addition to or in lieu of the default setup outlined here: https://wordpress.org/plugins/wp-saml-auth/#installation ?

Should be in lieu of.

I am seeing an error when trying to configure with the Google Apps setup here: https://pantheon.io/docs/wordpress-google-sso/ the error reads Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed and exactly 2 expected

I am seeing an error when trying to configure with the Google Apps setup here: https://pantheon.io/docs/wordpress-google-sso/ the error reads Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed and exactly 2 expected

There's an error in your code. You'll need to pass a priority and argument count to the filter registration (see the 10, 2 in the following code snippet):

add_filter( 'wp_saml_auth_option', function( $value, $option_name ) {}, 10, 2 );

Hope this helps!

from wp-saml-auth.

rimavelez avatar rimavelez commented on September 28, 2024

@danielbachhuber Thank you very much for your help, that solved it.

I am running into another issue now. After using the one-click authentication, I am redirected back to my site /wp-login.php path but with a 502 error and I am not logged in.

In SAML Chrome panel I see:

<saml2:AttributeStatement>
            <saml2:Attribute Name="first_name">
                <saml2:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:anyType">Firstname</saml2:AttributeValue>
            </saml2:Attribute>
            <saml2:Attribute Name="last_name">
                <saml2:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:anyType">Lastname</saml2:AttributeValue>
            </saml2:Attribute>
            <saml2:Attribute Name="user_login">
                <saml2:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:anyType">[email protected]</saml2:AttributeValue>
            </saml2:Attribute>
            <saml2:Attribute Name="user_email">
                <saml2:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:anyType">[email protected]</saml2:AttributeValue>
            </saml2:Attribute>
        </saml2:AttributeStatement>
        <saml2:AuthnStatement AuthnInstant="2019-05-12T13:17:00.000Z"
            SessionIndex=“_839f029qhd92h0j0j9hd83hd9”>
            <saml2:AuthnContext>
                <saml2:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified</saml2:AuthnContextClassRef>
            </saml2:AuthnContext>
        </saml2:AuthnStatement>

I don’t know what urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified means but I am assuming that is the issue. Any insight would be much appreciated.

from wp-saml-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.