browserid/browserid

BrowserID lib for PHP >= 5.3

v1.0 2012-11-19 04:44 UTC

This package is not auto-updated.

Last update: 2022-01-08 00:46:49 UTC


README

BrowserID lib for PHP >= 5.3

Usage

$assertion = get_assertion_safely_from_request();
try {
	$verifier = new \browserid\Verifier('yoursite.org');
	$response = $verifier->verify($assertion);
	if ($response->status == "okay") {
		$_SESSION['email'] = $response->email;
		...
	}
} catch (Exception $e) {
	// Something went wrong
}

TODO

License

Licensed under the MIT License (http://www.opensource.org/licenses/mit-license.php)