Quick Start Guide
Get your application integrated with Mubarokah ID OAuth 2.0 authentication in just a few steps. This guide will have you up and running in under 10 minutes.Prerequisites
Before you begin, make sure you have:Application Registration
Contact Mubarokah ID to register your application and get your credentials
HTTPS Endpoint
Your redirect URI must use HTTPS in production
Step 1: Get Your Credentials
After registering with Mubarokah ID, you’ll receive:- Client ID: Your application’s unique identifier
- Client Secret: Keep this secure on your server
- Redirect URI: Where users return after authentication
Step 2: Install Dependencies
Choose your preferred framework and install the necessary packages:Step 3: Environment Configuration
Set up your environment variables:.env
Step 4: Implement the OAuth Flow
Authorization Request
Redirect users to Mubarokah ID for authentication:Handle the Callback
Exchange the authorization code for tokens:Step 5: Test Your Integration
- Start your application
- Navigate to your login page
- Click “Login with Mubarokah ID”
- Complete the authentication flow
- Verify you receive user data
Next Steps
Security Best Practices
Learn essential security measures for production
Framework Integration Guides
Detailed examples for Laravel, Node.js, and Python
User Permissions & Scopes
Understanding different access levels
API Reference
Complete API documentation
Common Issues
Invalid redirect URI
Invalid redirect URI
Ensure your redirect URI exactly matches what’s registered with Mubarokah ID, including the protocol (https://) and any trailing slashes.
Invalid client credentials
Invalid client credentials
Double-check your
MUBAROKAH_CLIENT_ID and MUBAROKAH_CLIENT_SECRET environment variables. Make sure there are no extra spaces or characters.State parameter mismatch
State parameter mismatch
Implement proper state validation to prevent CSRF attacks. Store the state in the user’s session and verify it matches on callback.