Newgrounds Authentication pluggin. Port from rex_ngio_authentication now with support for C2 and C3 runtimes.
1) Newgrounds.io Thing (HTML5)
In short, it works as it should...while the game that uses this plugin is not hosted on Newgrounds itself, as weird as it sounds.
The thing is, the Authentication tries to open up the Newgrounds Passport popup window when the "Login" action is triggered, and while it does so successfully anywhere else but Newgrounds, the thing doesn't work on Newgrounds (given that the user already should be logged in prior to game booting up anyway...), meanwhile it sends an error log in the browser console, and it doesn't recognize the current user.
Uncaught ReferenceError: window is not defined
at Newgrounds.io.SessionLoader.loadPassport (c3runtime.js:1628)
at Newgrounds.io.core.requestLogin (c3runtime.js:1544)
at c3runtime.js:1971
at c3runtime.js:1624
at c3runtime.js:1627
at Newgrounds.io.core._doCallback (c3runtime.js:1548)
at XMLHttpRequest.h.onreadystatechange (c3runtime.js:1552)