Skip to content

Instantly share code, notes, and snippets.

@auroraeosrose
Created April 9, 2013 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save auroraeosrose/5347536 to your computer and use it in GitHub Desktop.
Save auroraeosrose/5347536 to your computer and use it in GitHub Desktop.
<?php
$url = 'https://verifier.login.persona.org/verify';
$data = 'assertion='.$_POST['assertion'].'&audience=http://persona.localhost:80';
$params = array('http' => array(
'method' => 'POST',
'content' => $data
),
'ssl' => array('verify_peer' => true
'verify_host' => true));
$result = file_get_contents($url, false, $context);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment