You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot login via G Suite (white screen: accounts.google.com/signin/continue) #622
My university uses a self-hosted login page (shib). After I specify my [email protected] address, Google redirects to shib.university.edu/....
Interestingly, Duo Security says cookies aren't enabled so I can't remember 2FA for 30 days. But the stock Android 7.0+GApps university login workflow has the same issue, so this isn't the cause of this problem.
After approving the 2fa, it redirects to a white screen. Logcat:
When logging in via G Suite university, the GAPS cookie is set on accounts.google.com / , so LoginActivity.closeWeb() EMBEDDED_SETUP_URL is capable of reading said cookies (even though we did not end up on EMBEDDED_SETUP_URL).
I'm not sure, maybe closeWeb should take a URL instead of a "is programmatic auth" boolean, and call CookieManager.getInstance().getCookie(URL directly). Not sure if the right cookies are visible for all cases or not (I think it's a functioning replacement for closeWeb(programmaticAuth=false), but haven't tested true).
I feel microG's interface would benefit if it clearly differentiates screens handled by Google's HTML, from local screens. (I don't like how the login screen is colored blue to imitate Google.) I feel it could help me find out where a bug originates (Google or microG, or some exact point where they interact).
Activity
nyanpasu64 commentedon Sep 29, 2018
I visited https://accounts.google.com/EmbeddedSetup?tmpl=new_account in a private desktop Firefox session, recorded network logs with "Persist logs" across page-changes checked.
https://www.google.com/accounts/signin/continue?sarp=1&plt=redacted&PersistentCookie=1&scc=0
https://accounts.google.com/signin/continue?sarp=1&plt=redacted&PersistentCookie=1&scc=0
I think you need to add an extra case to your code, to fetch said cookies from this URL.
Visiting https://accounts.google.com/EmbeddedSetup?tmpl=new_account and logging into a gmail.com account:
https://accounts.google.com/_/signin/speedbump/embeddedsigninconsent
#close is appended to address bar.
programmaticAuth ? PROGRAMMATIC_AUTH_URL : EMBEDDED_SETUP_URLWhen logging in via G Suite university, the GAPS cookie is set on accounts.google.com / , so LoginActivity.closeWeb() EMBEDDED_SETUP_URL is capable of reading said cookies (even though we did not end up on EMBEDDED_SETUP_URL).
I'm not sure, maybe closeWeb should take a
URLinstead of a "is programmatic auth" boolean, and callCookieManager.getInstance().getCookie(URL directly). Not sure if the right cookies are visible for all cases or not (I think it's a functioning replacement for closeWeb(programmaticAuth=false), but haven't tested true).I feel microG's interface would benefit if it clearly differentiates screens handled by Google's HTML, from local screens. (I don't like how the login screen is colored blue to imitate Google.) I feel it could help me find out where a bug originates (Google or microG, or some exact point where they interact).