Coder Social home page Coder Social logo

lightopenid's People

Contributors

arthom avatar iignatov avatar landas avatar nhnb avatar russor avatar vrana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lightopenid's Issues

Error get_provider_name

Hi,

I found a mistake inside the class. (v1.3.0 (2016-02-20))
line 690 : get_provider_name($this->claimed_id) == 'yahoo'

PHP said : Fatal error: Call to undefined function get_provider_name()
'$this' is missing. I added it and it's working perfectly now.

How to get Cookies

how to get all cookies and sessionid using this library and i used for steam login.
i was try and i only get sesionid and steamcountry.

Not remembering oauth scopes

Hello,

I'm using your fork here for the openid+oauth federated login for google apps domain. I succeed in logging the user in.

  1. The problem here is when I have a scope for oauth to handle, it requests consent on subsequent logins (or even revisiting the sso login page).
  2. Additionally a duplicate entry is added to the user's "connected sites" with each login, verifying the permissions on the "Authorized Access to your Google Account" page (Account > Security > Connected applications and sites).

If I removed the oauth scopes, it successfully remembers the login, but clearly I'm missing the scopes. When oauth scopes are enabled, each duplicate entry has the domain and "Sign in using your Google account" with no mention of additional permissions. In my case I'm only using one scope:

$openid->oauth = array( 'https://www.googleapis.com/auth/userinfo.profile' );

With oauth+openid, I successfully login and have the following:

[openid_ns_ext1] => http://specs.openid.net/extensions/oauth/1.0
[openid_ext1_scope] => https://www.googleapis.com/auth/userinfo.profile
[openid_ext1_request_token] => xxxToken

But as mentioned, subsequent visits ask again for consent due to the oauth scopes.

Any ideas as to why this happens?

For now, I'm using the required ax fields, which returns the desired info I'm looking to get with oauth.

 $openid->required = array('namePerson/last', 'namePerson/first', 'contact/email');

Thanks for any help.

A takeover request

I am no longer able to support or maintain this project - if you would like to take over the project, please drop me a line.

HI @iignatov I'd like to take you up on the offer. How would you like to transfer control? (in order of preference)

  • You could transfer this repo to my account
  • You could add me as a maintainer of this repo
  • You could add a link to my fork in the readme

Thanks

$openid->validate() returns false

Everything in data array appears to be valid results, yet the validate method returns false. I think this has to do with the results being urlencoded somehow. Previously, I can't remember which lightopenid class I was using; it had urls that was not encoded, and consequently the validate method returned true with the entire claimed_id as the $openid->identity.

That is, http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0 used to look like http://specs.openid.net/auth/2.0

Any ideas as to why this occurs? The reason I switched to your fork was to support the xrdsOverride method and the getOAuthRequestToken methods. I'm now seeing openid_ext1_request_token as part of data, but the validate still returns false.

Again, any help you can provide would be appreciated.

Realm and return_to do not match while using wildcard domain

Hi, i get that error everytime if i use a wildcard domain for the realm like this:

$openid = new LightOpenID('*.example.com');
if(!$openid->mode) {
    if(isset($_GET['login'])) {
        $openid->identity = 'http://steamcommunity.com/openid';
        $openid->returnUrl ='http://'.$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
        header('Location: ' . $openid->authUrl());
    }

I saw http://nodge.ru/yii-eauth/demo2/ has the option for this... i dont want to use this framework... I hope you can lend me a hand!! LightOpenID base has the same error (and someones pulls a merge request with the fix) but i cant fix it.

deprecated function in PHP 7.4 version

Hi, I am trying to use this lib to work with Steam and have error:

ERROR: Function get_magic_quotes_gpc() is deprecated {"exception":"[object] (ErrorException(code: 0): Function get_magic_quotes_gpc() is deprecated at /var/www/app/vendor/iignatov/lightopenid/openid.php:891)
[stacktrace]
#0 /var/www/app/vendor/iignatov/lightopenid/openid.php(891): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8192, 'Function get_ma...', '/var/www/app/ve...', 891, Array)
#1 /var/www/app/vendor/socialiteproviders/steam/Provider.php(58): LightOpenID->validate()

I am using PHP 7.4.2

PHP Compatablility

INI directive 'safe_mode' is deprecated from PHP 5.3 and forbidden from PHP 5.4.

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.