A quick template to help anyone configure their own Google sign-in authentication for your app!
This template provides a starting point for building a user authentication system with a Google Sign-In option. It includes a home page, login page, and profile page, along with the necessary backend logic to handle user sessions and Google authentication. The template uses Flask as the web framework and Tailwind CSS for styling.
To begin using this template, click on "Start with this Template" in the Lazy builder interface. This will pre-populate the code in the Lazy Builder, so you won't need to copy or paste any code manually.
Before testing the template, you'll need to set up an environment secret for the Google client ID:
Once the environment secret is set up, you can press the "Test" button in the Lazy builder. This will deploy your app and launch the Lazy CLI. You will not be prompted for any user input at this stage since the template does not require it.
After deployment, Lazy will provide you with a dedicated server link to access your app. You can use this link to interact with the frontend of your user authentication system:
If you wish to integrate this user authentication system into another service or frontend, you may need to:
Remember to secure your application by keeping your environment secrets confidential and following best practices for OAuth 2.0 authentication.
This is a FastAPI-based application that uses Google’s Gmail API to fetch and display emails based on user-defined search queries. It provides a /search_emails endpoint for email searches and a /oauth2callback endpoint for OAuth2 callbacks. The app requires the environment variables CLIENT_ID, CLIENT_SECRET, and REDIRECT_URI for OAuth2 authentication. These credentials pertain to your Google API and must be set correctly for the application to function as expected.
This Python script uses Flask to create a web application that connects to the Gmail API and retrieves the user's unread emails. The script defines two routes: "/" displays the user's unread emails, and "/oauth2callback" is the OAuth 2.0 callback URI. Following api keys need to be set as environment secrets to authenticate with google api: 1. CLIENT_ID 2. CLIENT_SECRET 3. REDIRECT_URI
This app is an API that sends an invitation email from a Gmail account with 2FA enabled. It accepts various inputs to generate a personalized invitation email based on the name of the email of the person being invited, the email who invited the person and the name of the organisation and an invitation link.