Connections
Sign in once to Google, Microsoft, GitHub or another web service, and let HTTP Request and Download File use that sign-in, with MacroWin keeping its token fresh.
Many web services don't take a fixed key: you sign in, and the service hands out a token that ends after an hour or so. A connection is such a sign-in, kept by MacroWin, so HTTP Request and Download File can use the service without a script. MacroWin gets a new token by itself before the old one ends.
You use your own app registration at the service: you register an app there once, which gives you a client ID (and often a client secret), and paste them into MacroWin. The sections below show how for Google, Microsoft and GitHub.
Add a connection
- Open Settings > Connections and click Add a connection.
- Choose the Provider: Google, Microsoft, GitHub or Custom. MacroWin fills in its sign-in addresses, usual scopes and allowed hosts.
- Paste the Client ID, and the Client secret if the service gave you one.
- Check the Scopes (what the connection may do, in the service's own words) and the Allowed hosts.
- Save, then Sign in. Your browser opens the service's sign-in page; when you're done, the tab says MacroWin is signed in and you can close it.
Allowed hosts are the only addresses the token is ever sent to, for example *.googleapis.com or api.example.com. A step that calls any other address with the connection fails and says so, so a macro can't send your sign-in somewhere else. Tokens are only sent over https.
Use it in a step
In HTTP Request or Download File, set Sign in to A connection and choose it under Connection. MacroWin sends the token as the Authorization: Bearer ... header. Like a password, the token never shows in the run log, the history or a wire.
A macro you got from someone else (the Macro Hub, the AI) can't use your connections until you approve Use your connections in its permission review, which names the connections it uses. A macro published to the Macro Hub never carries your connection: whoever installs it chooses their own.
When a sign-in ends
A service can end a sign-in: you changed your password, removed the app's access, or didn't use it for months. The step then fails with "Sign in again in Settings > Connections", and the bell says so too. Click Sign in on the connection to fix it. Sign out forgets the tokens on this PC.
What stays on this PC
The client secret and the tokens are encrypted for your Windows account on this PC. They're never in a backup, never synced, and never seen by the AI or a report. The AI only learns a connection's name. After a restore or on another PC, add the connection again and sign in there.
- Open the Google Cloud console, create a project (or pick one) and turn on the APIs you'll call under APIs & Services > Library.
- Under APIs & Services > OAuth consent screen, set up the consent screen. While the app is in testing, add your own Google account under Test users.
- Under APIs & Services > Credentials, click Create credentials > OAuth client ID and choose Desktop app as the type.
- Copy the Client ID and Client secret into MacroWin.
The Google preset asks for offline access, so the sign-in lasts. Add the scopes the APIs you call need, separated by spaces, for example https://www.googleapis.com/auth/spreadsheets.
Microsoft
- Open the Microsoft Entra admin center and go to Applications > App registrations > New registration.
- Choose who can sign in (for a personal Microsoft account too, choose the option that includes personal accounts).
- Under Redirect URI, choose Public client/native (mobile & desktop) and enter
http://127.0.0.1/callback. - Register, then copy the Application (client) ID into MacroWin. No client secret is needed.
The preset's scopes are offline_access User.Read; add the Microsoft Graph permissions you need, for example Mail.Read or Files.ReadWrite.
GitHub
- On GitHub, open Settings > Developer settings > OAuth Apps > New OAuth App.
- Set Authorization callback URL to
http://127.0.0.1/callback. - Register, then copy the Client ID, generate a client secret, and paste both into MacroWin.
Change the preset's repo scope to what you need, for example read:user or gist.
Another service
Choose Custom and fill in the service's Sign-in address (its authorization endpoint) and Token address from its developer documentation, with http://127.0.0.1/callback as the redirect address in your app registration. MacroWin signs in with the authorization code flow and PKCE.