Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Controller/OpauthAppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ public function callback(){
}
break;
case 'post':
$response = unserialize(base64_decode( $_POST['opauth'] ));
$response = json_decode(base64_decode( $_POST['opauth']), true);
break;
case 'get':
$response = unserialize(base64_decode( $_GET['opauth'] ));
$response = json_decode(base64_decode( $_GET['opauth']), true);
break;
default:
echo '<strong style="color: red;">Error: </strong>Unsupported callback_transport.'."<br>\n";
Expand Down Expand Up @@ -138,4 +138,4 @@ protected function _loadOpauth($config = null, $run = false){
App::import('Vendor', 'Opauth.Opauth/lib/Opauth/Opauth');
$this->Opauth = new Opauth( $config, $run );
}
}
}
23 changes: 23 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "uzyn/cakephp-opauth",
"description": "Opauth plugin for CakePHP v2.x, allowing simple plug-n-play 3rd-party authentication with CakePHP",
"type": "cakephp-plugin",
"keywords": ["cakephp", "opauth", "authentication", "auth", "oauth"],
"homepage": "http://opauth.org",
"license": "MIT",
"authors": [
{
"name": "U-Zyn Chua",
"email": "[email protected]",
"homepage": "http://uzyn.com"
}
],
"require": {
"php": ">=5.2.0",
"composer/installers": "1.*",
"opauth/opauth": ">=0.2.0"
},
"extra": {
"installer-name": "Opauth"
}
}