Setting Up Sign-In via GitHub OAuth
If you use LockMyCal in a technical or developer team, you can let users sign in conveniently and securely with their existing GitHub account.
1. Creating a GitHub OAuth App
- Sign in at github.com.
- In the top right corner, click your avatar and open Settings.
- In the left menu, scroll all the way down and click Developer settings.
- Choose OAuth Apps -> New OAuth App.
- Fill in the form:
- Application name:
LockMyCal - Homepage URL:
https://bookings.yourdomain.com - Authorization callback URL:
https://bookings.yourdomain.com/auth/github/callback
- Application name:
- Click Register application.
2. Generating the Client Secret
- On the application page you'll see the Client ID.
- Click the Generate a new client secret button.
- Confirm your password and copy the displayed code.
3. Setting it up in LockMyCal
Save the sign-in keys to the .env configuration file:
ENABLE_GITHUB_AUTH=true
GITHUB_CLIENT_ID=Iv1.xxxxxxxxxxxxxxxx
GITHUB_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
After restarting the instance, a Sign in with GitHub button appears on the LockMyCal sign-in screen. Sign-in methods can also be turned on in Administration → Application settings → Authentication.