mit-cml / appinventor-sources

MIT App Inventor Public Open Source
http://appinventor.mit.edu/appinventor-sources/
Apache License 2.0
1.47k stars 2.05k forks source link

Google login for Companion #1853

Open pMertDogan opened 4 years ago

pMertDogan commented 4 years ago

Is it possible add Google login to companion? Its make faster app development.We need just login google account same as ai2 account.So we dont need busy with reading qrcodes.

ewpatton commented 4 years ago

It is something we are considering, but it hasn't really been part of our typical usage scenario. The current connection mechanism is aimed for schools with shared devices where there isn't a 1-1 correspondence between student and device. The issue with logging in is that you need to remember to log out, otherwise the next student will have access to all of your projects. The QR code mechanism, by design, allows you to quickly exit the app and then reenter with a new student without the risk of leaking information across sessions.

ewpatton commented 4 years ago

I'll also note that this had additional complications for our other servers that don't use Google login. code.appinventor allows for anonymous login, the Ghangzhou server uses QQ, and our HK instance is wrapped in an educational portal infrastructure that uses its own (non-Google) accounts.

pavi2410 commented 4 years ago

Also, using QR codes/key input is better way to connect with emulators or different devices for testing than a login system.

pMertDogan commented 4 years ago

Yes , qrcode is better for students and emulators but i think too many people use their devices for debug ,like me( we need better emulator :( ).

I think we need qrcode and google login at the same time.So users can select own method.I can select Google Login and the students or emulator users can select qrcode login.

Google login method is not avaible for all user as ewpatton said.Maybe we can create somethink like api key.So we just enter this key for one time on companion .With this key we dont need any login provider.We can get this key on App Inventor 2 website ...

improvement for api key method, Maybe we can add dropdown option for "Connect" menu.Like Connect > Add device for companion

So when user click this option we can show one time qrcode and its pass keys to ai2 companion.With this method we dont need enter key manually to ai2 companion.