github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

alx / openid-server

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 10
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

All-in-one PHP package to install an OpenId server — Read more

  cancel

http://blog.alexgirard.com/2008/04/10/openid-install-your-own-server/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

verify is defined 
alx (author)
Fri May 09 03:30:10 -0700 2008
commit  a86940b4ae78b77e4e46c487ad76e2ebbccd03f4
tree    f1d2033484f7f9bac8f2c19800710673b35522ba
parent  873652e8a0bc7c5baf5601c75872f234b8a9258f
openid-server /
name age
history
message
directory PHP-server-1.1/ Loading commit data...
file README.textile Thu Apr 10 13:07:37 -0700 2008 Add Permission in README [alx]
file Smarty Thu Apr 10 06:53:36 -0700 2008 first commit [alx]
directory Smarty-2.6.19/
directory php-openid-1.2.3/ Fri May 09 03:30:10 -0700 2008 verify is defined [alx]
file web
README.textile

Configuration

In the package, you need to edit some configuration in web/config.php:


/**
 * The administrator's email address.  You may leave this empty if you
 * wish.  If empty, the "Contact (email address)" message will not
 * appear on every page footer.
 */
define('SITE_ADMIN_EMAIL', "admin@example.com");


/**
 * Set these values for administrative access.  This account will be
 * able to create and remove accounts from the auth backend.  This
 * username will not be permitted to use an OpenID.  The password MUST
 * be an MD5 hexadecimal hash of the password you want to use.
 * Example:
 *
 * define('ADMIN_PASSWORD_MD5', '21232f297a57a5a743894a0e4a801fc3');
 *
 */
define('ADMIN_USERNAME', 'admin');
define('ADMIN_PASSWORD_MD5', '');

Visit this page to transform your password in md5 hash


/**
 * Storage backend to use.  Currently the only choice is "MYSQL".  See
 * storage.php for storage backend implementations.  Parameters for
 * connecting to the storage backend.  See storage.php if you want to
 * create your own backend.
 */

define('STORAGE_BACKEND', 'MYSQL');
global $storage_parameters;

$storage_parameters = array('username' => 'openid',
                            'password' => '',
                            'database' => 'php_openid_server',
                            'hostspec' => 'localhost');

There are more options you can change in config.php, feel free to experiment :)

Link to http server

You need to tell to your server to access OpenID server in the ?web? directory.
Here is how it works on my webhost:

ln -sf ~/openid/web/ ~/public_html/openid/

You can now access your open-id server at: http://open-id.yourserver.com

Permissions

You need to write-enable your template directory:

chmod 766 ~/openid/PHP-server-1.1/templates_c/

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server