Skip to content

Commit bf6df28

Browse files
committed
README: the device flow takes only a client we registered
Support issues no device-flow client IDs: only a client we registered, such as our CLI, can use that flow, and an app of your own signs people in with the authorization code flow, as the Authentication page says. The OauthApi doc comment says the same.
1 parent f3c5dd5 commit bf6df28

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ if (token.apikey === undefined) {
289289
const keyed = new InternetData({ apiKey: token.apikey });
290290
```
291291
292-
A denied sign-in rejects with `OauthAccessDeniedError` and a code that ran out with `OauthExpiredTokenError`. Client IDs are issued on request from support@internetdata.io, and `client.oauth.revoke('your-client-id', token.refresh_token)` signs the machine out again.
292+
A denied sign-in rejects with `OauthAccessDeniedError` and a code that ran out with `OauthExpiredTokenError`. `client.oauth.revoke('your-client-id', token.refresh_token)` signs the machine out again. Only a client we registered, such as our CLI, can use the device flow: an app of your own signs people in with the authorization code flow below.
293293
294294
### Sign in with OAuth (authorization code)
295295

‎src/oauth.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ export interface TokenResponse {
132132
* it, or through a browser redirect with the authorization code flow. Reached
133133
* through `client.oauth`.
134134
*
135-
* Every call takes a client ID, issued on request from support@internetdata.io.
135+
* Every call takes a client ID. The device flow takes only a client we registered,
136+
* such as our CLI; an app of its own signs people in with the authorization code
137+
* flow, its client ID the https URL of a client metadata document it serves, or
138+
* the one `register` gave it.
136139
* None of these requests carries the client's API key, and none needs one.
137140
*/
138141
export class OauthApi {

0 commit comments

Comments
 (0)