opauth / thecity
The City strategy for Opauth
dev-master
2013-09-28 20:31 UTC
Requires
- php: >=5.2.0
- opauth/opauth: >=0.2.0
This package is not auto-updated.
Last update: 2024-11-19 06:24:40 UTC
README
Opauth strategy for The City authentication.
Implemented based on https://developers.facebook.com/docs/authentication/
Getting started
-
Install Opauth-TheCity:
cd path_to_opauth/Strategy git clone git@github.com:thecity/thecity-php.git TheCity
-
Create a plugin/app for The City (see https://api.onthecity.org/docs/apps for steps)
- Make sure that redirect URI is set to actual OAuth 2.0 callback URL, usually
http://path_to_your_app/thecity/int_callback
- Make sure that redirect URI is set to actual OAuth 2.0 callback URL, usually
-
Configure Opauth-TheCity strategy with at least
Client ID
andClient Secret
. -
Direct user to
http://path_to_opauth/thecity
to authenticate
Strategy configuration
Required parameters:
<?php 'TheCity' => array( 'client_id' => 'YOUR APP ID', 'client_secret' => 'YOUR APP SECRET', 'scope' => 'SCOPE (ie user_basic)' )
License
Opauth-TheCity is MIT Licensed
Copyright © 2013 City Dev Force