Giter Club home page Giter Club logo

openid's Introduction

Opauth-OpenID

Opauth strategy for OpenID.

Opauth is a multi-provider authentication framework for PHP.

Getting started

  1. Install Opauth-OpenID:

    cd path_to_opauth/Strategy
    git clone git://github.com/opauth/openid.git OpenID

    or

    composer require opauth/openid
    
  2. Configure Opauth-OpenID strategy. (see next section)

  3. Direct user to http://path_to_opauth/openid to authenticate

Strategy configuration

Opauth-OpenID requires zero configurations. It just needs to be defined along with the list of strategies.

<?php
'OpenID' => array(),

Optional parameters:

  • required - Required OpenID attributes.

  • optional - Optional OpenID attributes.

  • identifier_form - complete path to HTML or PHP view renders the form requesting for OpenID identifier.

Credits

Opauth-OpenID includes Mewp's LightOpenID library.
LightOpenID library is Copyright (c) 2010, Mewp and MIT licensed.

License

Opauth-OpenID is MIT Licensed
Copyright © 2012 U-Zyn Chua (http://uzyn.com)

openid's People

Contributors

ceeram avatar uzyn avatar yuzurus avatar

Stargazers

 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  avatar  avatar  avatar  avatar

openid's Issues

[wip/1.0] Use $this->openid->data or $_GET for raw data

Certain OpenID providers, for example Steam, will not provide any attributes, so using $this->openid->getAttributes() will return an empty array, causing the response validation to fail (missing required parameter "raw").

I suggest using $this->openid->data or $_GET for raw data instead.

This will probably mean that the responseMap will change from (for example):

'info.email' => 'contact/email'

To:

'info.email' => 'openid_ext1_value_contact_email'

etc.

Please update LightOpenID library

LightOpenID library has changed and fixes some errors. I need one, which fixed multiple provider server calling on line 352. Thanks. (This should be also updated in composer package)

352 - return file_get_contents($url, false, $context);
352 + return $data;

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.