Hey, one more question. :) Any idea what might be causing this error? Everything seems to be working correctly, I can authenticate / login into the web app. But Ithis flash message appears. I can't figure out what's causing "Nonce mismatch". Any thoughts?
Could not authenticate you from Apple because "Nonce mismatch".
It's pretty hard to tell ☒ . During the discovery of creating this episode, I got that kind of message a few times, but nothing in the error pointed me in the right direction to resolve it. I searched the Apple developer forums a few times and found several hints to resolve the issue and one of them finally worked. However, the kind of error message I got was with the handshake and it prevented authenticating the user. I haven't seen this particular case where you are authenticated, but still get that flash message.
I read changing this setting to :none will eliminate the error. But, that doesn't seem right. I tested it and it works in Safari and FF (no nonce mismatch error), but fails in Chrome. Hmmm....
Hey Alana - Unfortunately, no I did not find a good solution. I had to move on to other tasks. I was able to find the line of code in the Gem that caused the nonce error, removing or suppressing it didn't seem like a good idea. Let me know if find anything that might work.
FYI - The issue has been reported to GitHub: https://github.com/nhosoya/omniauth-apple/issues/76
Hi, just tried this and seems to be working OK for me using ENV, its mentioned in the video to use credentials and this is where I'm having an issue as it seems my format of the oauth strategy added in devise.rb is wrong, when trying to run rails server to test it crashes
OK, with some help from David Kimura I got it working with credentails and corrected my 'copy and paste' error from facebook Oauth strategy. Lesson learnt is about the escape character /n that must be used when specifying the key in the credentials file, something about the conversion to 64 bit ..... ( error you get from Apple will be something along the lines of 'OpenSSL::PKey::ECError, invalid curve name'. Thanks again to David for his prompt help.
Any idea what might be causing this error? Everything seems to be working correctly, I can authenticate / login into the web app. But Ithis flash message appears. I can't figure out what's causing "Nonce mismatch". Any thoughts?
From the logs:
I tried setting the keys with rails credentials, and I'm getting faced with this error now
Any ideas how I can fix this? :/
Now I'm receiving this error:
From what I can see online it may be a devise issue?
FYI -
The issue has been reported to GitHub: https://github.com/nhosoya/omniauth-apple/issues/76
for info this is how I've declared in devise.rb
Anyone able to help please?