Giter Site home page Giter Site logo

Comments (7)

PanWangJ avatar PanWangJ commented on July 23, 2024

@petitbx Got the same type of error, if you figure out how to solve this, please share.

from sso.

petitbx avatar petitbx commented on July 23, 2024

@PanWangJ For me, I think the problem is with the web server may be miss something on the web server like a dependency of PHP...

from sso.

PanWangJ avatar PanWangJ commented on July 23, 2024

@petitbx The problem should be that the server is sending response with content-type set to "text/html" rather than the expected "application/json". The only thing that matters is that I don't know how to solve this problem as I am new to both PHP and SSO.

from sso.

petitbx avatar petitbx commented on July 23, 2024

@PanWangJ Your web server is installed with the extension json.so ?

from sso.

PanWangJ avatar PanWangJ commented on July 23, 2024

@petitbx Not sure what json.so is, I just cloned the project into my computer and run the examples.

from sso.

petitbx avatar petitbx commented on July 23, 2024

I solved the problem, just add curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); line 199 on src/Broker.php

from sso.

jasny avatar jasny commented on July 23, 2024

The SSO Server will always send a JSON response and never HTML. If the broker received HTML something went wrong. There is either an error and you have display_errors enabled (you should log the errors instead), or Apache is giving a response and PHP is never invoked.

@petitbx Using a redirect that isn't followed, is indeed one of the cases when this could occur. Good find.

from sso.

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.