dsauth is an oauth-only auth pachage for fuelphp depends on fuel-ninjauth
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
classes
confg fix typo Dec 9, 2012
migrations initial commit Dec 5, 2012
views
.gitignore initial commit Dec 5, 2012
LICENSE add lisence and readme Dec 6, 2012
README.md fix typo Dec 9, 2012
bootstrap.php initial commit Dec 5, 2012

README.md

DsAuth

dsauth is an oauth(and openid)-only auth package for fuelphp depends on fuel-ninjauth

Installation

setup packages

place these packages underfuel/packages folder

  • fuel-dsauth
  • fuel-ninjauth
  • fuel-oauth
  • fuel-oauth2

setup config

		'packages'  => array(
			// packages…
			'ninjauth',
			'oauth',
			'oauth2',
			'dsauth',
		),

setup NinjAuth config

change adapter to DsAuth

	'adapter' => 'DsAuth',

run migration

make authentications table for ninjauth

oil refine migrate --packages=ninjauth

make users table for dsauth

oil refine migrate --packages=dsauth

Usage

create Controller_Auth extends \DsAuth\Controller

Configuration

<?php
return array (
	'db_connection' => null,
	'login_hash_salt' => 'dassaiauthentication',
	// table columns to select when user logged in
	'table_columns' => array('*'),
	// user table name
	'table_name' => 'users',
	// if true, always show confirm form for  new user
	'always_confirm_username' => false,
	// if true, check same user name for new user
	'allow_duplicated_username' => false,
	'auto_modify_userinfo' => true,
);