Signing in to Microsoft, Google, Slack and GitHub
Microsoft, Google, Slack and GitHub each ask a program that signs a person in to register with them first, as an "app". Catervas on your own computer has no app of its own with any of these services. Instead, it signs you in through catervas.com, which holds Catervas's apps. You press the sign-in button and approve on the service's own page. Then you are signed in.
| Service | For |
|---|---|
| Microsoft | Outlook email and your Outlook calendar, on the Email and Calendar places (coming soon) |
| Your Google calendar, on the Calendar place (coming soon) | |
| Slack | The Slack connector, which lets an agent read Slack as you (Connectors and skills) |
| GitHub | Connecting your agents to GitHub |
What passes through catervas.com
When you press Sign in with Microsoft, the browser goes to catervas.com and then to Microsoft's page. Then the browser returns through catervas.com to Catervas on your computer. catervas.com finishes the sign-in with Catervas's app. Then it gives the sign-in to your Catervas alone. Your Catervas proves that it started the sign-in with a one-time secret that never leaves your computer. After that, catervas.com keeps nothing, and it keeps nothing that says who you are.
Microsoft and Google sign-ins need renewal about every hour. A renewal asks for the app's secret, which only catervas.com holds. So your Catervas asks catervas.com to renew these sign-ins, and catervas.com returns the new sign-in immediately. Your email, calendar and messages never pass through catervas.com. Catervas reads them directly from the service.
If Catervas cannot reach catervas.com, you lose nothing. Catervas keeps your sign-ins and tries again the next time it needs one.
Your Catervas sends catervas.com a random number with each sign-in and renewal. Catervas chooses this number one time, when it first starts. The number names no person and no computer. catervas.com uses it only to count how often each copy of Catervas signs in and renews. This count stops one copy from using all that the services allow everyone.
How often Catervas calls each service
Microsoft, Google, Slack and GitHub limit how often an app can call them. Everyone who signs in with Catervas's apps shares some of those limits. So Catervas counts its own calls, for each sign-in:
| Service | In any minute | In any 24 hours |
|---|---|---|
| Microsoft (Outlook calendar and mail) | 300 calls, at most 2 at once | 20,000 calls |
| Google Calendar | 120 calls | 5,000 calls |
| Slack: reading a conversation or a thread | 1 call | 300 calls |
| Slack: searching, and lists of conversations and people | 10 calls | 500 calls |
| GitHub sign-ins with Catervas's app | 3 in any hour | 5 |
When Catervas uses all the calls for the minute, it waits its turn for up to 45 seconds. Then it continues. If the wait is longer than that, Catervas says how many seconds to wait. When Catervas uses all the calls for the day, the agent says so, and says when it can call again. In both cases, Catervas keeps your sign-ins. GitHub sign-ins with an app of your own have no limit.
Using an app of your own instead
If you prefer that nothing passes through catervas.com, register a free app of your own with the service. You do this one time, and it takes about five minutes:
- Open Settings.
- Open Accounts.
- Find Your own apps.
- Press Set up… beside the service.
- Follow the numbered steps that Catervas shows. A button copies each item that you paste on the service's page.
- At the end, paste the app's ID.
- Press Save.
From then on, Catervas signs you in to that service directly, with your app. Catervas also shows these steps when you press a sign-in button for a service that catervas.com is not ready for yet.
Catervas keeps the app's ID on this computer only. Change… replaces the ID, and Forget… removes it. If you forget an app, its sign-ins stop working the next time the service asks Catervas to renew them. Then you must sign in again.
The steps below are the same as the steps in the window.
Microsoft
- Open App registrations in Microsoft Entra and sign in with your Microsoft account.
- Press New registration.
- In Name, type Catervas.
- Under Supported account types, choose Any Entra ID Tenant + Personal Microsoft accounts.
- Press Register.
- The app's page opens. Copy its Application (client) ID and paste it into the box at the bottom of Catervas's window.
- In the menu on the left, under Manage, press Authentication. Then press Add Redirect URI (some pages call it Add a platform).
- Choose Mobile and desktop applications.
- Under Custom redirect URIs, paste the address that Catervas's window shows. The address looks like
http://localhost:4777/api/oauth/callback. - Press Configure.
If Microsoft says that you need a directory or a subscription first, make a free Azure account at azure.microsoft.com/free. Then start again at step 1. Microsoft asks for a card to check who you are, and charges nothing.
The app needs no secret, and you add no permissions by hand. When you sign in, Microsoft asks you to approve what Catervas reads.
Google
- Open Google's page for a personal app and sign in with the Google account whose calendar you want to connect.
- Keep the project name that Google suggests.
- Under Application type, choose Desktop app.
- Tick the box to agree to Google's terms, and press Continue.
- A box called OAuth client created opens. Copy the Client ID and paste it into the first box at the bottom of Catervas's window.
- Copy the Client secret from the same box and paste it into the second box. Google shows the full secret only this one time.
- Open the Google Calendar API and press Enable. If Google asks which project, choose the project that it just made.
Only the Google account that made the app can sign in with it. So use the same account in step 1 and when you sign in. Google needs the secret even from an app on your own computer. Google does not treat this secret as a real secret. Catervas keeps it encrypted and never shows it again.
Slack
- Open Slack's page for your apps and sign in to your Slack workspace.
- Press Create New App, then choose From a manifest.
- Choose the Slack workspace that your agents will read, and press Next.
- Choose JSON. Delete the text that is already in the box, and paste the text that Catervas's window shows. Press Next.
- Press Create.
- On the page that opens, find App Credentials. Copy the Client ID and paste it into the box at the bottom of Catervas's window.
The text that you paste describes the app for Slack. It gives these items:
- the app's name
- the address that Slack returns you to
- the permissions to read conversations and search messages as you
- the one-time code check, which lets an app on your own computer sign in without a secret.
Slack cannot switch that check off again. Because of this check, Slack can ask you to sign in again after 30 days. If your Slack workspace allows only approved apps, Slack asks its administrator to approve this app when you sign in.
GitHub
- Open GitHub's page for a new OAuth app and sign in.
- In Application name, type Catervas.
- In Homepage URL, paste
https://catervas.com. - In Authorization callback URL, paste
http://127.0.0.1. Catervas does not use this address, but GitHub asks for one. - Tick Enable Device Flow.
- Untick Expire user access tokens. A renewal of a GitHub sign-in needs the app's secret, and Catervas does not ask you for it. As a result, if this box is ticked, agents will lose GitHub after eight hours. Catervas's own app on catervas.com keeps this box ticked and renews sign-ins there.
- Press Register application.
- The app's page opens. Copy the Client ID and paste it into the box at the bottom of Catervas's window. You do not need a client secret.
If you belong to a GitHub organisation, possibly the organisation must approve the app before agents can reach its repositories.
For whoever runs Catervas for others
The CATERVAS_SIGN_IN_RELAY setting changes the address of the sign-in service, for example to a test copy. The value off switches the sign-in service off, so that Catervas uses only your own apps.
An app can also come from a setting when Catervas starts:
CATERVAS_MICROSOFT_CLIENT_IDCATERVAS_GOOGLE_CLIENT_IDwithCATERVAS_GOOGLE_CLIENT_SECRETCATERVAS_SLACK_CLIENT_IDCATERVAS_GITHUB_CLIENT_ID(orgithubClientIdin~/.catervas/config.json).
An app from one of these settings takes the place of an app saved in the dashboard. Your own apps shows this app, but you cannot change it there. See Configuration.