This repository has been archived by the owner on Dec 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version bump, updated documentation, example config files
- Loading branch information
Showing
7 changed files
with
158 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
examples/FacebookOpenGraphOAuth2/application/configs/facebook_api_EXAMPLE.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
; 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.dev/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 |
16 changes: 16 additions & 0 deletions
16
examples/GooglePlusOAuth2/application/configs/google_plus_api_EXAMPLE.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
; 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://127.0.0.1/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 |
14 changes: 14 additions & 0 deletions
14
examples/JamendoApiOAuth2/application/configs/jamendo_api_EXAMPLE.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
; 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.dev/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
include.path=${php.global.include.path} | ||
php.version=PHP_56 | ||
source.encoding=UTF-8 | ||
src.dir=. | ||
tags.asp=false | ||
tags.short=false | ||
web.root=. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://www.netbeans.org/ns/project/1"> | ||
<type>org.netbeans.modules.php.project</type> | ||
<configuration> | ||
<data xmlns="http://www.netbeans.org/ns/php-project/1"> | ||
<name>zend-framework-1-oauth-2-library</name> | ||
</data> | ||
</configuration> | ||
</project> |