by moonboy
Internal tool (web app) with Google sign in and team management
import logging
from gunicorn.app.base import BaseApplication
from app_init import create_initialized_flask_app
# Flask app creation should be done by create_initialized_flask_app to avoid circular dependency problems.
app = create_initialized_flask_app()
# Setup logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
class StandaloneApplication(BaseApplication):
def __init__(self, app, options=None):
self.application = app
self.options = options or {}
super().__init__()
def load_config(self):
# Apply configuration to Gunicorn
for key, value in self.options.items():
if key in self.cfg.settings and value is not None:
self.cfg.set(key.lower(), value)
def load(self):
Created: | Last Updated:
Internal Tool Template with Google Sign-in and Team Management
This template provides a ready-to-use internal tool with Google authentication and team management features. It's perfect for creating internal dashboards or tools where access needs to be restricted to specific team members.
Getting Started
- Click "Start with this Template" to begin using this template in your Lazy Builder interface
Test the Application
- Click the "Test" button in the Lazy Builder interface
- Once deployed, you'll receive a server link to access your internal tool
Using the Application
The internal tool provides several key features:
- Google Authentication: Users can sign in with their Google accounts
- Team Management: Control who has access to your internal tool through:
- Individual email allowlist
- Domain-based access (e.g., allow anyone from
@yourcompany.com
) - Ability to block specific users
- Track last login times
To manage team access:
- Navigate to the "Team" section using the sidebar
- Add allowed email domains to grant access to everyone from specific organizations
- Add individual admin emails for granular access control
- Block/unblock specific users as needed
- View last login times for all users
The dashboard includes:
- Responsive sidebar navigation
- Mobile-friendly design
- User profile information
- Clean, modern interface using Tailwind CSS and DaisyUI components
Customizing the Interface
The main dashboard (home page) is designed to be customized for your specific use case. You can modify the content in home.html
to add:
- Custom statistics
- Data visualizations
- Project information
- Team updates
- Any other internal tool functionality
The template provides a solid foundation with:
- Responsive layout
- Navigation structure
- Authentication system
- Team management
- Error pages (401, 404, 500)
Simply build upon the existing structure to create your internal tool's specific functionality.
Template Benefits
-
Secure Internal Access Control
Provides enterprise-grade security through Google authentication and granular team management, allowing organizations to strictly control who has access to internal tools based on email domains or individual permissions. -
Rapid Internal Tool Development
Significantly reduces development time for internal applications by providing a pre-built authentication system, user management interface, and responsive design framework - enabling teams to focus on building core functionality rather than infrastructure. -
Professional User Experience
Delivers a polished, modern interface with responsive design, intuitive navigation, and consistent styling across all pages - creating a professional experience that matches enterprise standards without additional design work. -
Flexible Team Administration
Offers comprehensive team management features including domain-level access, individual user control, and blocking capabilities - making it ideal for organizations that need to manage access across departments or subsidiaries. -
Cost-Effective Compliance
Helps organizations maintain compliance with security policies by providing audit trails of user access, login tracking, and centralized user management - reducing the risk and cost associated with unauthorized access to internal tools.
Technologies








