All Projects → chrisweb → zend-framework-1-oauth-2-library

chrisweb / zend-framework-1-oauth-2-library

Licence: BSD-3-Clause license
two new zend framework components, zend_oauth2 and zend_service_facebook

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to zend-framework-1-oauth-2-library

ZendServerSDK
Pure ZF2 CLI for zpk creation and webapi client.
Stars: ✭ 22 (+22.22%)
Mutual labels:  zend-framework
Slugify
Converts a string to a slug. Includes integrations for Symfony, Silex, Laravel, Zend Framework 2, Twig, Nette and Latte.
Stars: ✭ 2,697 (+14883.33%)
Mutual labels:  zend-framework
koala-framework
Framework and CMS based on Zend Framework and ExtJS
Stars: ✭ 61 (+238.89%)
Mutual labels:  zend-framework
imeals-project
iMeals is a Open Source Restaurant Software for Food Delivery and Restaurant Management
Stars: ✭ 31 (+72.22%)
Mutual labels:  zend-framework
Zend-Nested-Set
Implementation of a nested set model to use with Zend Framework
Stars: ✭ 22 (+22.22%)
Mutual labels:  zend-framework
zend-sentry
A Zend Framework 3 module that lets you log to the Sentry.io service.
Stars: ✭ 34 (+88.89%)
Mutual labels:  zend-framework
twbs-helper-module
Laminas (formerly Zend Framework) module for easy integration of Twitter Bootstrap
Stars: ✭ 18 (+0%)
Mutual labels:  zend-framework
zfcore
ZFCore - CMF based on ZF 1.x [closed]
Stars: ✭ 14 (-22.22%)
Mutual labels:  zend-framework
stefano-tree
Framework agnostic Nested Set (MPTT) implementation for PHP
Stars: ✭ 24 (+33.33%)
Mutual labels:  zend-framework
zend-di-config
PSR-11 PHP-DI container configurator for Laminas, Mezzio, ZF, Expressive applications or any framework that needs a PSR-11 container
Stars: ✭ 19 (+5.56%)
Mutual labels:  zend-framework
learnzf2
Learn ZF2: Learning Zend Framework 2 by Example
Stars: ✭ 35 (+94.44%)
Mutual labels:  zend-framework
zend-problem-details
Provides Problem Details for HTTP APIs (RFC 7807) support for PSR-7 applications.
Stars: ✭ 50 (+177.78%)
Mutual labels:  zend-framework
ZfSnapGeoip
Maxmind Geoip module for Zend Framework 2
Stars: ✭ 15 (-16.67%)
Mutual labels:  zend-framework
zf-dependency-injection
Advanced dependency injection for laminas framework
Stars: ✭ 17 (-5.56%)
Mutual labels:  zend-framework

About:

Zend Framework 1 OAuth 2 Library

version 1.1.2

Examples:

Zend Framework 1 OAuth 2 examples.

Facebook Open Graph API OAuth 2

  1. Add the latest "Zend" Framework linrary and the "Chrisweb" library to the library directory

  2. Setup an Apache vhost for the example:

apache vhost.conf

<VirtualHost *:80>

    ServerName www.facebookopengraphoauth2.test
    DocumentRoot /path/to/examples/FacebookOpenGraphOAuth2/public
    ErrorLog "logs/facebookopengraphoauth2-error.log"
    CustomLog "logs/facebookopengraphoauth2-access.log" combined
    SetEnv APPLICATION_ENV "development"
 
    <Directory /path/to/examples/FacebookOpenGraphOAuth2/public>
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
	
</VirtualHost>
  1. (optional) Update your hosts file:

127.0.0.1 www.facebookopengraphoauth2.test

3.1) or just use the localhost IP to access the example(s)

http://127.0.0.1

  1. Create a Facebook API account at https://developers.facebook.com/apps

Don't forget to set the go to "Settings" and set the correct "App Domains" (for example www.facebookopengraphoauth2.test) and also set the "Website / Site Url" (for example www.facebookopengraphoauth2.test)

  1. Finally go into "/examples/FacebookOpenGraphOAuth2/application/configs/" and rename the file "facebook_api_EXAMPLE.ini" to "facebook_api.ini" and add your own values where needed

5.1) Or if you prefer you can also create a new configuration file named "facebook_api.ini" in "/examples/FacebookOpenGraphOAuth2/application/configs/" and add the following values:

; documentation: https://developers.facebook.com/docs/facebook-login

; facebook OAuth api configuration
dialogEndpoint = https://www.facebook.com
oauthEndpoint = https://graph.facebook.com
clientId = 000000000000000000 ; change this with own values: clientId => Facebook App ID
clientSecret = 000000000000000000000000000000 ; change this with own values: clientSecret => Facebook App Secret
callbackUrl = http://www.facebookopengraphoauth2.test/facebookcallback
responseType = code ; or token, none, signed_request
oauthDialogUri = /dialog/oauth
accessTokenUri = /oauth/access_token
stateSecret = SOME_SECRET ; change this with own values, change the secret every time you think it could have been compromised, it is used to ensure the OAuth requests really come from your app
; permissions https://developers.facebook.com/docs/facebook-login/permissions
requestedRights = email

Google+ API OAuth 2

  1. Add the latest Zend Framework and the Chrisweb library to the library directory.

  2. Setup an Apache vhost for the example:

apache vhost.conf

<VirtualHost *:80>

    ServerName www.googleplusoauth2.test
    DocumentRoot /path/to/examples/GooglePlusOAuth2/public
    ErrorLog "logs/googleplusoauth2-error.log"
    CustomLog "logs/googleplusoauth2-access.log" combined
    SetEnv APPLICATION_ENV "development"
 
    <Directory /path/to/examples/GooglePlusOAuth2/public>
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
	
</VirtualHost>
  1. (optional) Update your hosts file:

127.0.0.1 www.googleplusoauth2.test

3.1) or just use the localhost IP to access the example(s)

http://127.0.0.1

  1. Create a Google+ API account at https://console.developers.google.com

  2. Finally go into "/examples/GooglePlusOAuth2/application/configs/" and rename the file "google_plus_api_EXAMPLE.ini" to "google_plus_api.ini" and add your own values where needed

5.1) Or if you prefer you can also create a new configuration file named "google_plus_api.ini" in "/examples/GooglePlusOAuth2/application/configs/" and add the following values:

; documentation: https://developers.google.com/+/web/api/rest/oauth

; google+ api configuration
dialogEndpoint = https://accounts.google.com/o/oauth2
oauthEndpoint = https://accounts.google.com/o/oauth2
clientId = 0000000000000000.apps.googleusercontent.com ; change this with own values
clientSecret = 00000000000000000000000000000 ; change this with own values
responseType = code ; https://developers.google.com/identity/protocols/OpenIDConnect#responsetypeparameter
callbackUrl = http://www.googleplusoauth2.test/googlepluscallback
secretType = 
immediate = 
oauthDialogUri = /auth
accessTokenUri = /token
stateSecret = SOME_SECRET ; change this with own values, change the secret every time you think it could have been compromised, it is used to ensure the OAuth requests really come from your app
; google+ scopes https://developers.google.com/+/web/api/rest/oauth#authorization-scopes
requestedRights = https://www.googleapis.com/auth/plus.login,https://www.googleapis.com/auth/plus.me,https://www.googleapis.com/auth/userinfo.email

Jamendo API OAuth 2

  1. Add the latest Zend Framework and the Chrisweb library to the library directory.

  2. Setup an Apache vhost for the example:

apache vhost.conf

<VirtualHost *:80>

    ServerName www.jamendoapioauth2.test
    DocumentRoot /path/to/examples/JamendoApiOAuth2/public
    ErrorLog "logs/jamendoapioauth2-error.log"
    CustomLog "logs/jamendoapioauth2-access.log" combined
    SetEnv APPLICATION_ENV "development"
 
    <Directory /path/to/examples/JamendoApiOAuth2/public>
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
	
</VirtualHost>
  1. (optional) Update your hosts file:

127.0.0.1 www.jamendoapioauth2.test

3.1) or just use the localhost IP to access the example(s)

http://127.0.0.1

  1. Create a Jamendi API account at https://developer.jamendo.com/v3.0

  2. Finally go into "/examples/JamendoApiOAuth2/application/configs/" and rename the file "jamendo_api_EXAMPLE.ini" to "jamendo_api.ini" and add your own values where needed

5.1) Or if you prefer you can also create a new configuration file named "jamendo_api.ini" in "/examples/JamendoApiOAuth2/application/configs/" and add the following values:

; documentation: https://developer.jamendo.com/v3.0/authentication#oauth2-authorize-request

; jamendo api configuration
dialogEndpoint = https://api.jamendo.com/v3.0
oauthEndpoint = https://api.jamendo.com/v3.0
clientId = 0000000000 ; change this with own values
clientSecret = 0000000000000000000000000000 ; change this with own values
callbackUrl = http://www.jamendoapioauth2.test/jamendocallback
oauthDialogUri = /oauth/authorize
accessTokenUri = /oauth/grant
stateSecret = SOME_SECRET ; change this with own values, change the secret every time you think it could have been compromised, it is used to ensure the OAuth requests really come from your app
grantType = authorization_code
requestedRights = music ; = scope
responseType = code ; = response_type

OAuth 2.0 protocol specification:

http://oauth.net/2/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].