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
var fs = require('fs'); | |
function handlePost(req, callback){ | |
var body = ''; | |
// Receive multiple chunks | |
req.on('data', function (data){ | |
body += data; | |
}); | |
// All chunks received | |
req.on('end', function (data){ |
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
<?php | |
session_start(); | |
// | |
// Consent denied by user | |
if (isset($_SESSION['info-lk']['ra']) && isset($_GET['error'])) | |
$_SESSION['info-lk']['error'] = 'access denied'; | |
// | |
// Process received single use token | |
else if (isset($_SESSION['info-lk']['ra']) && isset($_GET['code'])){ | |
if (!isset($_GET['state']) || $_SESSION['info-lk']['nx'] != $_GET['state']) |