With OAuth 2.0 as a request’s auth, DialCatz gets the access token for you: it asks the provider when you send, keeps the token on your computer, uses it until it ends and renews it with the refresh token. You fill in the provider’s addresses and the client once, on a request, a folder or a whole collection.
The four grants
A grant is the way the token is got. Pick it under Grant in the Auth pane:
| Grant | How the token is got | A person signs in? |
|---|---|---|
| Authorization code | You sign in in the browser; the usual choice for an API used on behalf of a person. PKCE (S256) is on. | Yes, in the browser |
| Client credentials | The app signs in as itself with its client secret; no person, no browser. | No |
| Device code | DialCatz shows a short code; you type it in on the provider’s page, on this computer or your phone. | Yes, on any device |
| Password | A username and password are sent to the token address. Older; use it only when the server offers nothing else. | No |
Set it up
- Open the Auth pane of a request — or Settings… of a folder or collection, so every request inside can inherit it — and choose OAuth 2.0 under Type.
- Choose the Grant.
- Fill in the addresses. The fast way: type the provider’s address in Issuer and press Find addresses — see Find the addresses from the issuer. Or type them yourself.
- Fill in Client ID, Client secret and Scope. Write the secret as a
{{variable}}, such as{{clientSecret}}, and keep its value in an environment variable marked secret. - For Authorization code: copy the Redirect URI the pane shows and register it with your provider.
- Press Get new token — or just send the request.
The fields
| Field | For | What it is |
|---|---|---|
| Issuer | Every grant, optional | The provider’s address, for Find addresses |
| Auth URL | Authorization code | Where the browser signs in |
| Device URL | Device code | Where the code to type in is asked for |
| Token URL | Every grant | Where the token is asked for |
| Client ID | Every grant | The client registered with the provider |
| Client secret | Needed for Client credentials; leave empty for a public client with Authorization code or Device code | The client’s secret — a {{variable}} |
| Username, Password | Password | The person’s login — the password as a {{variable}} |
| Scope | Every grant | What is asked for, a space between scopes |
Under More options:
| Option | Default | What it does |
|---|---|---|
| Client sent as | Basic header | How the client ID and secret reach the token address: in a Basic header, or In the body. A client without a secret always sends its ID in the body. |
| PKCE | On | Authorization code only. Protects the sign-in (S256). Leave on unless the server refuses it. |
| Redirect URI | http://127.0.0.1:47200/callback |
Authorization code only. Another address on this computer, when the default cannot be used. |
| Audience | Empty | Only when the provider asks for one (Auth0). |
| Header prefix | Bearer |
What goes before the token in the Authorization header. |
Every field takes {{variables}}, filled from the request’s environment when the token is asked for. A variable
without a value is named under the fields, and Get new token waits until it has one.
The redirect URI
With Authorization code, the browser has to come back to DialCatz after you signed in. It comes back to an address on your own computer, by default:
http://127.0.0.1:47200/callback
The Auth pane shows it under Redirect URI with a copy button. Register this address with your provider as an allowed redirect (callback) URI — most providers refuse a sign-in whose redirect they do not know.
- DialCatz listens on that address only while a sign-in waits, and only for that sign-in. The page you land on says You are signed in and can be closed.
- The sign-in opens in the browser chosen in Settings → General → Open with.
- To use another address, set Redirect URI under More options. It must be on this computer, in plain http and
with a port:
http://127.0.0.1:<port>/…orhttp://localhost:<port>/…. Register the new one with the provider too. - When port 47200 is in use, DialCatz says so: close what uses it, or change the redirect URI.
- A sign-in nobody finishes ends after 5 minutes. Cancel stops it sooner. One sign-in waits at a time.
Find the addresses from the issuer
Most providers publish their addresses in a discovery document. Type the provider’s address in Issuer —
https://id.example.com — and press Find addresses. DialCatz reads
<issuer>/.well-known/openid-configuration (OpenID Connect discovery), then the OAuth one,
/.well-known/oauth-authorization-server, and fills in Token URL, Auth URL and Device URL from it. You can
also paste the full address of a .well-known document.
When the provider has no such document, DialCatz says so, and you fill in the addresses by hand.
The device code
With Device code, Get new token asks the provider for a code. The Auth pane shows it, large, with a copy button, and opens the provider’s page in your browser. Type the code in there — on this computer or on another device — and sign in. DialCatz waits, asking the provider as often as it allows, and takes the token when you are done. Open the page again opens the page once more; Cancel stops the wait. A code that ends before anyone signed in says so: choose Get new token for a new one.
When the token is got
- When you send. A request with OAuth 2.0 gets its token on the way out: the kept one while it lasts, a renewed one when it ended and a refresh token is kept, a new one otherwise. The token is asked for after the pre-request scripts ran, so a script can still set a variable it is asked with.
- A token is used until 30 seconds before it ends, so a request never leaves with one that dies on the way.
- Client credentials and Password get a new token by themselves, every time one is needed.
- Authorization code and Device code need you. A request you send by hand opens the sign-in page when there is no token; for a device code, start from Get new token to see the code in the pane. The runner never opens one: it uses the kept token or renews it, and otherwise the request fails with sign in first. Open the Auth tab and choose Get new token.
- Two sends at the same moment share one token request.
- The token goes out as
Authorization: Bearer <token>(or with your Header prefix). AnAuthorizationheader you set yourself on the request wins. - It works the same for a WebSocket handshake and a gRPC call.
The token’s state
The box at the bottom of the OAuth 2.0 pane says where things stand:
| It says | Meaning |
|---|---|
| No token yet | Nothing is kept for these settings |
| Token ready | A token is kept; the provider gave it no end |
| Token ready, 42 min left | A token is kept, with the time it still lasts — and (renews by itself) when a refresh token is kept |
| Token ended; DialCatz renews it on the next send | It ended and a refresh token is kept |
| Token ended | It ended and cannot be renewed: get a new one |
Below it, Scope: shows what the provider granted. The token itself is never shown.
- Get new token asks for a fresh one now, whatever is kept — with the sign-in, for the grants that have one.
- Forget token removes the kept token for these settings.
A kept token belongs to its settings: the grant, the addresses, the client ID, the scope and the audience (and the username, for Password). Change one of them and DialCatz asks for a new token; two requests with the same settings share one.
Where tokens are kept
Tokens stay on your computer, in DialCatz’s own data folder, each one encrypted for your user account by the system’s secret store (Keychain on macOS, DPAPI on Windows, the keyring on Linux).
- They are never saved with the request or the collection, never written into a workspace folder, and never sent to a DialCatz Den.
- Where the system has no secret store — a Linux session without a keyring — a token is not written to disk at all: it is kept only until DialCatz quits, and the Auth pane says so.
- A token got more than 60 days ago and not renewed since is removed.
Inherit it from a folder or a collection
Set OAuth 2.0 once in a collection’s or a folder’s Settings… → Auth, and every request inside whose Auth is Inherit uses it — and shares its token. The nearest folder wins over the collection; a request can still choose No auth or its own type. See Collection and folder settings.
Import and export
Postman. A Postman collection’s OAuth 2.0 auth comes along on import: the grant (authorization code with or without PKCE, client credentials, password), the token and auth URLs, the client ID and secret, scope, audience, how the client is sent and the header prefix. A token saved in the Postman export is left behind. Export in the Postman format writes the same settings back. Postman’s format has no place DialCatz reads a device code grant from, and a device code request is written out as an authorization code one — set the grant again after a round trip.
OpenAPI. An OpenAPI or Swagger import takes the document’s security scheme as the collection’s auth: the one its
top-level security asks for, or its only one.
| The spec’s scheme | The collection gets |
|---|---|
http with bearer |
Bearer token {{token}} |
http with basic (Swagger 2: basic) |
Basic, {{username}} and {{password}} |
apiKey in a header or the query |
API key with the scheme’s name, value {{apiKey}} |
oauth2 |
OAuth 2.0 with the flow’s token URL, auth URL and scopes, Client ID {{clientId}} and Client secret {{clientSecret}} |
For oauth2, the authorization code flow is taken when the spec has one, else client credentials, else password. An
operation the spec marks as open (security: []) gets No auth. Secrets always come in as {{variables}} for you
to fill in. A collection that follows its spec keeps the
auth it has when the spec changes.
Export as OpenAPI writes an oauth2 security scheme with the
grant’s flow, its addresses and scopes — when the Token URL is a plain address, not a {{variable}} — and never
the client or its secret. Each operation gets security naming it. A Device code grant writes no scheme: OpenAPI
has no device flow.
Try it: the OAuth 2.0 folder
The Getting started collection has a folder named OAuth 2.0, with two requests against Duende’s public demo
server (demo.duendesoftware.com), whose demo clients and their secrets are published for trying OAuth out:
| Request | What it shows |
|---|---|
| Client credentials | Send it: DialCatz asks the token address for a token with the client ID and secret, then calls the API with it. No sign-in. |
| Sign in with a device code | Send it, or Auth → Get new token: DialCatz shows a short code and opens the sign-in page. Sign in there as bob with the password bob and agree; DialCatz then gets the token and renews it by itself. |
Open a request’s Auth pane to see how it is set up; your own APIs use the same settings, with secrets in
{{variables}}. A Getting started collection made by an earlier DialCatz gets the folder once, when you update.
In a team
The OAuth 2.0 settings are part of the request, folder or collection, so they travel with it — through a workspace folder in Git and through a DialCatz Den:
| Shared with the team | Stays on each computer |
|---|---|
| The grant, the addresses, the client ID, the scope and the other options | Every token: access and refresh |
The names of the variables, such as {{clientSecret}} |
The variables’ values |
So each teammate signs in for themselves and gets a token of their own. One thing to watch, as with every auth type: a
secret typed as it is into Client secret or Password is part of the settings and is shared — into the
files of a folder workspace too. Use a {{variable}}; see
Auth values typed into a request go into the files.
From the command line
The CLI runs requests with OAuth 2.0 too. Client credentials and Password get their token by themselves, which is what a CI job wants. Device code is offered when a person is at the terminal. Authorization code needs the app and its browser round trip. The CLI keeps a token only for the run.
With MCatzP
Through MCatzP, an AI assistant can set a request’s or a collection’s auth to OAuth 2.0
(auth with mode: oauth2, the grant, the addresses, the client ID and scope) — after you allow the change.
- Secrets only as
{{variables}}. A client secret or password the assistant writes must be a{{variable}}; you fill in its value. Reading the auth back shows the addresses, the client ID and the scope, and a secret only as its variable’s name. - It cannot read a kept token, forget one or start a sign-in on its own.
- A request it sends gets or renews its token like one you send. An authorization code or device code sign-in is still yours, in your browser, after you allowed the send. The dialog that asks names the host the token comes from.
Limits
- Four grants: authorization code, device code, client credentials and password. The implicit grant is not offered.
- The redirect URI is an address on this computer, in plain http and with a port.
- The token goes into the
Authorizationheader. - The runner and the CLI do not open a browser sign-in.
- Digest and AWS signature auth are not supported.
Last updated 2026-11-23