Auth / GitHub sign-in in your app's name
GitHub sign-in in your app's name
GitHub's sign-in window names whoever owns the sign-in key. On Onelo's shared key it asks people to authorize "Onelo". With Onelo Pro or Business, Onelo creates a GitHub key in your app's name for you, so GitHub shows your app's name. You do not need a GitHub account for it. Every sign-in of the app uses the key: the hosted sign-in page, the store and every SDK.
Switch GitHub on
- In the dashboard open your app → Auth → Sign-in providers and switch GitHub on. Or ask your agent:
social_login.set_providerwithprovider: "github". - The first switch-on asks Onelo for the key. Onelo creates a GitHub App in your app's name. You have nothing to do: GitHub needs no DNS record and does not review it. The card shows "Setting up" until the key is ready.
- Once the key is ready, the card says "On · your app's key" and GitHub shows your app's name. From then on the switch only shows or hides the GitHub button.
The agent can read each provider's state with social_login.get_sign_in_keys and ask again with social_login.request_sign_in_key, for example after a rejected key. The dashboard has the same "Ask Onelo again" link on the card.
What buyers see until the key is ready
| Where | What buyers see |
|---|---|
| Your live app (production) | No GitHub button. People sign in with password or the e-mail link, so nobody sees "Onelo". The button appears once your app’s key is ready. |
| Staging and your Sandbox App | The GitHub button, signed in with Onelo’s shared key: GitHub shows "Onelo". |
| Onelo Free | The GitHub button with Onelo’s shared key: GitHub shows "Onelo". Onelo Pro and Business show your app’s name. |
Or use your own GitHub OAuth App
If you want the key in your own GitHub account, create an OAuth App there and save it in Onelo instead. While your own key is saved, Onelo does not create one.
- In GitHub open Settings → Developer settings → OAuth Apps and create a new OAuth App.
- Give it your app's name: that is what GitHub shows on the authorize screen.
- Set the Authorization callback URL to exactly the URL your app's Auth tab shows. On Onelo it is
https://onelo.tools/api/sdk/auth/oauth/callback. - Generate a client secret and copy it with the client ID.
Save it in Onelo
In the dashboard open your app → Auth → Sign-in providers → Use my own key → GitHub → Use my own, paste the client ID and client secret and save. Or ask your agent: social_login.set_own_credentials with provider: "github". Onelo asks GitHub first: wrong credentials, or a callback URL GitHub does not have, are refused and nothing is saved. The secret is stored encrypted and never shown again.
The next sign-in uses your OAuth App. Removing it takes effect on the next sign-in too.
What changes for people who already sign in with GitHub
Nothing. A GitHub account has one ID whatever key asks, so everybody who signed in with Onelo's shared key lands on the same account under your app's key or your own OAuth App. You can switch back and forth.
When something breaks
| What happened | What you see |
|---|---|
| GitHub refuses your own OAuth App at a sign-in (deleted app, revoked secret) | The person sees a sign-in error. You get one e-mail and the Auth tab shows the refusal until a sign-in works again or you save new credentials. |
| Your own OAuth App was deleted, or the callback URL removed | Onelo checks your OAuth App once a day and tells you the same way. |
| GitHub refuses the key Onelo created in your app’s name | Onelo’s operator is told and fixes it; you are not asked to act. |
| Your app moves sign-in to its own domain | Onelo’s operator adds the new callback URL to the key Onelo created. |
Keys in your app's name, Onelo's or your own, are part of Onelo Pro and Business. On a plan without them GitHub sign-in keeps working and goes back to Onelo's shared key.