Topic on Extension talk:GoogleAppsAuthentification

Nonce error "OpenID authentication failed: Nonce already used or out of range"

4
219.79.162.89 (talkcontribs)

Sorry I don't know if it's the correct place to voice out questions - correct me if it's not.

I just did what you told me last night (29 Aug 2011). I was correctly redirected to the Google Apps login page, and also the subsequent "XXXXXXXX (my URL) wants to access the following information" (etc.). But then I was stopped at an error with only 1 line of output: "OpenID authentication failed: Nonce already used or out of range". Any clue on this?

Thanks! I love this great extension - simple, easy to use, just great.

BertrandGorge (talkcontribs)

Did you make sure the tmp folder is writable ? Do you see the nounce files being created ?

BertrandGorge (talkcontribs)

One thing is that we found that the extension doesn't work too well on a Windows setup - for some reason it started to work with a linux box only... Maybe a lead for you !

202.55.50.236 (talkcontribs)

Oh yeah problem solved.

1) I just noticed that the tmp folder that came with the OpenID library (as linked from the wiki page) was actually NOT empty. And so when I am setting the correct permissions to it, I need to recursively chmod-ing it. That is, " chmod -R 777 tmp " instead of " chmod 777 tmp ".

2) Once I have made the #1 change, I encountered another error of "undefined function: FileCache::singleton() on line 2726 of includes/GlobalFunctions.php", even when I used a new browser to browse the wiki. My mediawiki was an old one, 1.14 version. I didn't touch any configuration concerning FileCache (and it should default to "false" ?) The problem doesn't go away even I switch on or off FileCache in LocalSettings.php. My solution was to (dirtily) amend GlobalFunctions.php and comment out that if() block and use only the else block. (very dirty indeed!)

Reply to "Nonce error "OpenID authentication failed: Nonce already used or out of range""