Giter Site home page Giter Site logo

yii-opauth's Introduction

Opauth for Yii Framework

What is Opauth for Yii Framework?

Opauth for Yii Framework is a wrapper for Opauth by U-Zyn. The bundled Opauth may not be the latest, please grab the latest from the Opauth repository and place it in vendors.

Opauth provides a standardized way to interface with 3rd-party authentication providers. Unlike many current authentication frameworks, Opauth does not deal with database, so developers are not forced to adhere to predetermined database schema.

You can include strategies from the Opauth strategy list.

How to make it work

Deploy it by placing it the whole opauth directory into protected/modules/opauth.

And in your ./protected/config/main.php, add opauth to begin:

<?php
return array(
	...
	'modules' => array(
		'opauth' => array(
			'opauthParams' => array(
				'Security.salt' => 'LDFmiilYf8Fyw5W10rx4W1KsVrieQCnpBzzpTBWA5vJidQKDx8pMJbmw28R1C4m',
				'Strategy' => array(
					'facebook' => array(
						'app_id' => 'YOUR_FACEBOOK_APP_ID',
						'app_secret' => 'YOUR_FACEBOOK_APP_SECRET',
					)
				),
			),
		),
	),
	...
);

Issues?

If you have any issues, please highlight them in yii-opauth's GitHub issues.

yii-opauth's People

Contributors

kahwee 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yii-opauth's Issues

Can't find files

"include(OpauthStrategy.php): failed to open stream: No such file or directory"

I've no idea if I've set this up properly. Is there more config than what is in the doc, because it doesn't seem to work.

I'm attempting to use this to sign my users in with Google. This is a default generated Yii app. Any clues?

Undefined index: action on the line 85 on Opauth\Opauth.php

I installed the module in Yii and accessed it as http://localhost/app/opauth/facebook.
It showed some errors in the naming of the strategy files. So I had to rename them to Facebook.php instead of FacebookStrategy.php. Now it is showing error 'Undefined index: action' at the line 85 of the Opauth.php file which reads

$this->Strategy->callAction($this->env['params']['action']);

I tried var_dump ing $this just before the line and found out that there was no item in the 'params' array named 'action'.

Composer Package?

Hi,

i've forked your repo to make your extension as a composer package.

So If you like you could create a second branch or repo for the composer package, in order to submit it in the packagist.

Please check my fork

How does it work?

Hi,
Your README explains how to put configurations in the config file, but nothing more.
Could you give examples on how to use your plugin?
I see you created 2 Controllers that are pretty much empty...

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.