Open flancast90 opened 2 years ago
Hello.
It's too hard or impossible because of OAuth security.
I'll appreciate if you help me with this feature.
Hello. It's too hard or impossible because of OAuth security.
Not really. Google App Passwords allow a simple username/password login without disabling the Secure Apps features. I think the hard part will be determining the token Aternos uses for the Google Login. However, if they keep you logged in, you could attempt a normal OAuth flow, and then see if it's persistent across Aternos.
determining the token Aternos uses for the Google Login
Aternos' backend is not open-source.
It doesn't provide any ajax API for logging in with Google.
While the feature is not implemented, use Client.from_session
specifying ATERNOS_SESSION cookie as an argument.
Aternos' backend is not open-source. It doesn't provide any ajax API for logging in with Google.
Yes, but the args are passed to Google via URL to open the google signin window. If you could determine the token for Google signin, you could use the standard Google OAuth library without any need for Aternos' backend.
Google Sign-in Button href: https://aternos.org/auth/google-login
client_id=853067141497-24lhsecgk8lm86qat7nolobpn791o2r6.apps.googleusercontent.com redirect_uri=https://aternos.org/auth/google-login
As the title implies, an auth flow using Google would be beneficial for google-using clients.