browserid / browserid
BrowserID lib for PHP >= 5.3
Installs: 2 544
Dependents: 0
Suggesters: 0
Security: 0
Stars: 17
Watchers: 5
Forks: 2
Open Issues: 0
This package is not auto-updated.
Last update: 2024-04-13 10:59:58 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
- Make it abstract and integrate with php-browseridlib?
License
Licensed under the MIT License (http://www.opensource.org/licenses/mit-license.php)