Skip to content

Instantly share code, notes, and snippets.

@raphaelbussa
Created February 24, 2016 19:56
Show Gist options
  • Save raphaelbussa/5caaf07896cbe0e83239 to your computer and use it in GitHub Desktop.
Save raphaelbussa/5caaf07896cbe0e83239 to your computer and use it in GitHub Desktop.
Oauth2 redirect url
<?php
header('Content-Type: application/json');
$response = array();
$code= $_GET["code"];
if ($code == "") {
$response["success"] = false;
} else {
$response["success"] = true;
$response["code"] = $code;
}
echo json_encode($response);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment