Google App Engine upload project - python

I have to upload a Python project online and i'm using Google App Engine Launcher.
Using the login and password of my account on Google (the account that I used for Developers console), appear this message"Error Failed; auth error.".
What is wrong?

You can generate an app specific password here:
https://security.google.com/settings/security/apppasswords
Alternatively, you can use OAuth2 to upload your program.
See for more info:
https://cloud.google.com/appengine/docs/python/tools/uploadinganapp#Python_Password-less_login_with_OAuth2

Related

Login with Azure Credentials for windows Kivy-Python app

I need to create a windows app where users can log in to the app using windows azure credentials and then the app calls the API after the user has successfully logged in. I am extremely new to python and so far all the solution I found was related to the python web app. I have seen similar functionality in google cloud SDK login but I have no idea how to implement it using Kivy-Python on my own. Is there any way to achieve this? If so please guide me on how to do it. Thank you :)
I can't give you full solution, but there is the latest python MSAL library ready for your example, as docs said:
The Microsoft Authentication Library for Python enables applications to integrate with the Microsoft identity platform. It allows you to sign in users or apps with Microsoft identities (Azure AD, Microsoft Accounts and Azure AD B2C accounts) and obtain tokens to call Microsoft APIs such as Microsoft Graph or your own APIs registered with the Microsoft identity platform. It is built using industry standard OAuth2 and OpenID Connect protocols
https://github.com/AzureAD/microsoft-authentication-library-for-python
It works for Windows: https://github.com/AzureAD/microsoft-authentication-library-for-python/wiki/Microsoft-Authentication-Client-Libraries

Logging with google acount in Flask

I'm starting a web project (in flask) in which the user needs to authenticate with his google account to later save data files in his Google Drive using PyDrive
Flask has a few libraries to authenticate but reading their doc, not all of them support OAuth2. The following 2 libraries DO support Oauth2 though.
Flask-OpenID
Flask-GoogleLogin
My question is, what is the best form to authenticate the google account? Or there is some extension for Google to make an even easier logging?

Python - google drive authentication using email and password

I'm creating a simple python 2.7 application that uploads files to Google drive.
I've used PyDrive examples and they work quite well.
But in all the examples they all require the client to get their authentication secret key from their Google account and add it to the client_secrets file.
Is there a way to authenticate to Google drive in Python using Client email and password credentials?
I know this is possible using google spreadsheet (API unavailable)

How to authenticate as myself for Google Drive API?

I have not found a satisfactory answer/tutorial for this, but I'm sure it must be out there. My goal is to access Google Drive programmatically using my credentials. A secondary and lower-priority goal is to do this properly and that means using OAuth rather than ClientLogin.
Thus: How do you authenticate with the Google Drive API using your own credentials for your own Google Drive (without creating an application on the Google Developers Console)?
All of the documentation assumes an application, but what I'm writing is merely helper scripts in Python 2.7 for my own benefit.
"How do you authenticate with the Google Drive API using your own credentials for your own Google Drive (without creating an application on the Google Developers Console)?"
You can't. The premise of OAuth is that the user is granting access to the application, and so the application must be registered. In Google's case, that's the API/Cloud Console.
In your case, there is no need to register each application that uses your helper scripts. Just create an app called helper_scripts, embed the client Id in your script source, and then reuse those scripts in as many applications as you like.

Windows Live Web Authentication on Google App Engine (GAE) using Python

I'm struggling to get Windows Live Web Authentication running on Google App Engine (GAE) using Python, as I'm quite new to the language.
However there are lots of examples for Facebook and Twitter, I was wondering if anyone had come up with a solution for Windows Live yet?
From what I can tell, the SDK you're referring to is just used for authentication, not authorization. That is, it allows you to uniquely identify a user by their Windows Live ID, but not, say, programmatically import their Hotmail contacts.
If this is the case, it would be easier to use the built-in OpenID support that's already available on both sides. The Windows Live OpenID provider is OpenID.Live-INT.com; instructions for authenticating using OpenID on App Engine can be found # http://code.google.com/appengine/articles/openid.html.
I ended up using http://anyopenid.com which provides quite a good bridge to openid, and I was able to use this with Google App Engine.

Categories

Resources