FriendsOfFlarum / passport

The Laravel passport compatible oauth extension for your Flarum forum.
https://discuss.flarum.org/d/5203
MIT License
28 stars 12 forks source link

I got a white page after oauth. thanks. #41

Open guoxiangke opened 1 month ago

guoxiangke commented 1 month ago

Hi, after I login with laravel passport site, after I give permission, It redirect to this page https://flarum.my.site/auth/passport?code=def50xxxxx0c411f5ba2c870b0ff0f12139&state=89152fb7f2xxxxxf1115a1979 with a blank page and stay there.

some one can help? thanks

flarum/core                                    v1.8.5    Delightfully simple forum software.
fof/passport                                   1.1.1     The OAuth2 (and Laravel passport) compatible oauth extension
clarkwinkelmann commented 1 month ago

Check the Flarum log and webserver log for any error message https://docs.flarum.org/troubleshoot

If there's nothing in the Flarum log, it might be a general PHP error or warning that will be logged to the webserver or general system log file of the server.

guoxiangke commented 1 month ago

finally, I find the bug:

image
window.close(); window.opener.app.authenticationComplete({"email":"omTsc6gIRTSQnsomr6qZoiUeug4k@wx","token":"uzuk75qdzXX1PSXidaKHdhzzCQlGcw2Si9MfQpAD","provided":["email"]});

while Uncaught TypeError: Cannot read property 'app' of null which means no (opener)! "window.opener" is null / undefined. for the empty page load nothing, just the Githubissues.

  • Githubissues is a development platform for aggregating issues.