Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update URLs and navigator.id API #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions services/authentication/browserid.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
* Provides a session based authentication method that validates logins with
* BrowserID
*
* @link https://browserid.org/
* @link https://persona.org/
* @package midgardmvc_core
*/
class midgardmvc_core_services_authentication_browserid extends midgardmvc_core_services_authentication_sessionauth
{
private $provider = 'https://browserid.org/verify';
private $include = 'https://browserid.org/include.js';
private $provider = 'https://verifier.login.persona.org/verify';
private $include = 'https://persona.org/include.js';

public function __construct()
{
Expand Down
4 changes: 2 additions & 2 deletions templates/midgardmvc-login-browserid.xhtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<tal:block tal:condition="php: !midgardmvc.authentication.is_user()">
<img id="browserid" src="https://browserid.org/i/sign_in_green.png" />
<img id="browserid" src="https://login.persona.org/i/sign_in_green.png" />
<script>
jQuery(document).ready(function() {
if (!navigator.id) {
Expand All @@ -8,7 +8,7 @@
}

jQuery('#browserid').click(function() {
navigator.id.getVerifiedEmail(function(assertion) {
navigator.id.get(function(assertion) {
if (!assertion) {
return;
}
Expand Down