Secure Google Sign-In authentication plugin for CyberPanel admin panel, powered by Sheild360.
- Google OAuth 2.0 - Secure sign-in with Google accounts
- Sheild360 Branded Login Page - Modern dark theme with shield security branding
- Email/Domain Whitelisting - Control who can access the panel
- Animated UI - Smooth animations, floating orbs, grid overlay effects
- Responsive Design - Works on desktop, tablet, and mobile
- Session Management - Integrates with CyberPanel's session system
- User Management CLI - Add/remove users via management commands
- Easy Install/Uninstall - One-command setup and removal
git clone https://github.com/mosiur-engine/Cyberpanel-Google-Login.git
cd Cyberpanel-Google-Login
sudo bash install.sh- Go to Google Cloud Console
- Create a new project (or select existing)
- Go to APIs & Services > Credentials
- Click Create Credentials > OAuth client ID
- Select Web application
- Add authorized redirect URI:
https://your-domain:8090/google/callback - Copy the Client ID and Client Secret
Edit the config file:
sudo nano /usr/local/CyberCP/googleAuth/config.json{
"GOOGLE_CLIENT_ID": "your-client-id.apps.googleusercontent.com",
"GOOGLE_CLIENT_SECRET": "your-client-secret",
"GOOGLE_REDIRECT_URI": "https://your-domain:8090/google/callback",
"ALLOWED_EMAILS": ["admin@gmail.com"],
"ALLOWED_DOMAINS": [],
"ALLOW_ALL_GOOGLE_USERS": false,
"DEFAULT_ADMIN_USER": "admin"
}Navigate to: https://your-domain:8090/google/
| Option | Description | Default |
|---|---|---|
GOOGLE_CLIENT_ID |
OAuth 2.0 Client ID | Required |
GOOGLE_CLIENT_SECRET |
OAuth 2.0 Client Secret | Required |
GOOGLE_REDIRECT_URI |
OAuth callback URL | Required |
ALLOWED_EMAILS |
List of allowed email addresses | [] |
ALLOWED_DOMAINS |
List of allowed email domains | [] |
ALLOW_ALL_GOOGLE_USERS |
Allow any Google user to sign in | false |
AUTO_CREATE_ADMIN |
Auto-create admin user on first login | false |
DEFAULT_ADMIN_USER |
CyberPanel user to authenticate as | admin |
{
"BRANDING": {
"COMPANY_NAME": "Sheild360",
"TAGLINE": "Secure Google Login for CyberPanel",
"PRIMARY_COLOR": "#0f62fe",
"SECONDARY_COLOR": "#0d1117",
"ACCENT_COLOR": "#00c9ff",
"WEBSITE_URL": "https://sheild360-app.vercel.app",
"LOGO_URL": "",
"FAVICON_URL": ""
}
}cd /usr/local/CyberCP
# List all authorized users
python manage.py google_auth_manage list
# Add a user
python manage.py google_auth_manage add --email user@gmail.com --cpuser admin
# Remove a user
python manage.py google_auth_manage remove --email user@gmail.com
# Allow an entire domain
python manage.py google_auth_manage allow-domain --domain company.com
# Show current config
python manage.py google_auth_manage show-config| URL | Description |
|---|---|
/google/ |
Login page |
/google/auth |
Initiates Google OAuth flow |
/google/callback |
OAuth callback handler |
/google/logout |
Logout and redirect to login |
/google/status |
Auth status JSON endpoint |
cd Cyberpanel-Google-Login
sudo bash uninstall.shCyberpanel-Google-Login/
├── config.json # Configuration file
├── install.sh # Installation script
├── uninstall.sh # Uninstall script
├── requirements.txt # Python dependencies
└── googleAuth/ # Django app
├── __init__.py
├── apps.py
├── google_config.py # Configuration loader
├── models.py # Database models
├── urls.py # URL routing
├── views.py # OAuth views & handlers
├── migrations/
│ └── 0001_initial.py
├── management/
│ └── commands/
│ └── google_auth_manage.py
├── templatetags/
│ └── google_auth_tags.py
└── templates/
└── googleAuth/
└── login.html # Sheild360 branded login page
- OAuth 2.0 state parameter for CSRF protection
- Email/domain whitelisting to restrict access
- Session-based authentication integrated with CyberPanel
- Config file permissions set to 600 (root-only readable)
- No passwords stored - authentication delegated to Google
MIT License - See LICENSE for details.
- Sheild360: https://sheild360-app.vercel.app
- Repository: https://github.com/mosiur-engine/Cyberpanel-Google-Login