Python Forum
python application and credentials safety concern
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python application and credentials safety concern
#4
If the solution provided by ndc85430 is the best one I can achive, can someone give me an advice on how to login with google?

My need is only to send emails with gmail, from this google's post I think I am forced to use the more complex OAuth 2.0, to my understanding I can't use a simple API-KEY, please correct me if I am wrong

This is a sample of a google's credentials
Output:
{"installed":{"client_id":"my client id","project_id":"my project id":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"my client secret","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}
Maybe my best possibility is to store the whole dictionary as a string in the environment variables and then convert it back to dictionary and pass it to google
Reply


Messages In This Thread
RE: python application and credentials safety concern - by aster - Mar-06-2021, 04:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I properly implement restarting a multithreaded python application? MrFentazis 1 623 Jul-17-2023, 09:10 PM
Last Post: JamesSmith
  Cannot find py credentials file standenman 5 1,632 Feb-25-2023, 08:30 PM
Last Post: Jeff900
  Python running only in application Mawixy 2 1,117 Apr-19-2022, 11:38 AM
Last Post: Mawixy
  FTP File Download question / concern cubangt 3 1,304 Jan-06-2022, 07:46 PM
Last Post: cubangt
  How to send data from a python application to an external application aditya_rajiv 1 2,173 Jul-26-2021, 06:00 AM
Last Post: ndc85430
  Using python to execute app or cmd that requires admin credentials thewolf 0 2,102 Mar-05-2021, 08:15 PM
Last Post: thewolf
  Keep Application running after Python script ends PEGylated_User 0 1,970 Nov-12-2020, 03:27 PM
Last Post: PEGylated_User
  httplib2 - how to see credentials added by add_credentials? MSV 2 2,160 Aug-05-2020, 12:24 PM
Last Post: MSV
  Installing Python Application pplgf 3 2,536 Apr-27-2020, 10:51 PM
Last Post: Larz60+
  loop in pyautogui (python automation GUI application) pyprogrammer 0 4,777 Feb-12-2020, 02:52 PM
Last Post: pyprogrammer

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020