Login using persona does not work
Login using the Persona method does not work in FF (various versions and Operating systems). Using other browsers e.g. Chrome or IE it does work.
I followed the instructions at http://www.sitepoint.com/authenticate-users-with-mozilla-persona/ (because those at https://developer.mozilla.org/en-US/Persona/Quick_setup were not easy to understand)
On hitting the "signup with Persona" button it just adds # to the URL. I did a factory reset on my FF - no change. Cleared cookies, no change.
But it works beautifully for other browsers. As Persona was invented by Mozilla this is crazy isn't it? This affects other people too, not just my setup (FF 29 under Linux Mint).
Would be grateful for any advice, Thanks, John
วิธีแก้ปัญหาที่เลือก
Thanks for looking Moses,
It inspired me to try again and it turned out to be a .htaccess file - once I removed that Firefox was fine.
I copied that from the example but never knew what it was for and the example did not mention it so I thougth What the hell, lets remove it and see what happens.
In case it means anything to you (it doesn't to me!) the content was : <IfModule mod_headers.c>
Header set X-Content-Security-Policy: "default-src 'self'; frame-src 'self' https://login.persona.org ; script-src 'self' https://login.persona.org"
</IfModule>
อ่านคำตอบนี้ในบริบท 👍 0การตอบกลับทั้งหมด (4)
hello john, can you try it with noscript disabled to rule out any interference from that?
Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems
Hi Philip,
I have tried that and also restarting FF in Safe Mode and the factory reset. It made no difference so I re-installed it. Probably the others who tried my demo site don't even use noscript.
The place I'm using it is http://mkas.org.uk/members/ Its intended to only allow a limited group of people entry. At the moment there is nothing beyond the login test until I get this working.
Thanks, John
Hi John,
I don't think it's just you. I can reproduce this on Firefox 29.0.1 and Pale Moon v24.5.0 but it works just fine on Chrome and Opera.
When I open the Error Console, I get
[06:19:26.592] ReferenceError: jQuery is not defined @ http://mkas.org.uk/members/js/mkasVerify.js:67
[06:19:26.675] syntax error @ http://api.smarterfox.com/api/infinite_scrolling_rules.json?locale=en-US&install_time=1400958418209&install_uuid=48e1bda4-8573-f7f0-af91-ddc198518714&install_source=addons.mozilla.org&extension_name=FastestFox:1
[06:19:27.159] Use of getPreventDefault() is deprecated. Use defaultPrevented instead. @ chrome://smarterwiki/content/jquery.js:3527
Looking into your code, I think that there's something up with the content in the script tags or the link rel tag up top.
Unfortunately, I don't have the knowledge to troubleshoot with HTML/CSS so I am going to pass on this question. Just thought I would confirm this isn't an isolated issue.
For the more experienced contributors, here is the source code just in case.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>MKAS members-only area</title>
<link rel="stylesheet" href="css/persona/persona-buttons.css">
</head>
<body>
<h1>MKAS members-only area (testing)</h1>
<p>
I find this does not work with Firefox v29. Please let me know of your results.
<br/>
Thanks,
<br/> John.
</p>
<a href="#" class="persona-button persona-signin"><span>Sign in with Persona</span></a>
<!--jQuery Library from Google-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<!--Persona Library from Mozilla-->
<script src="https://login.persona.org/include.js"></script>
<!-- Our custom code -->
<script src="js/mkasVerify.js"></script>
</body>
</html>
วิธีแก้ปัญหาที่เลือก
Thanks for looking Moses,
It inspired me to try again and it turned out to be a .htaccess file - once I removed that Firefox was fine.
I copied that from the example but never knew what it was for and the example did not mention it so I thougth What the hell, lets remove it and see what happens.
In case it means anything to you (it doesn't to me!) the content was : <IfModule mod_headers.c>
Header set X-Content-Security-Policy: "default-src 'self'; frame-src 'self' https://login.persona.org ; script-src 'self' https://login.persona.org"
</IfModule>