@atproto/oauth-client-browser 0.1.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +33 -24
- package/dist/browser-oauth-client.d.ts +7 -7
- package/dist/browser-oauth-client.d.ts.map +1 -1
- package/dist/browser-oauth-client.js +8 -8
- package/dist/browser-oauth-client.js.map +1 -1
- package/dist/browser-oauth-database.d.ts +0 -1
- package/dist/browser-oauth-database.d.ts.map +1 -1
- package/dist/browser-oauth-database.js.map +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
# atproto OAuth Client for the Browser
|
2
2
|
|
3
|
-
This package provides
|
4
|
-
|
3
|
+
This package provides a browser specific OAuth client implementation for
|
4
|
+
atproto. It implements all the OAuth features required by [ATPROTO] (PKCE, DPoP,
|
5
5
|
etc.).
|
6
6
|
|
7
7
|
`@atproto/oauth-client-browser` is designed for front-end applications that do
|
8
|
-
not have a backend server to manage OAuth sessions.
|
8
|
+
not have a backend server to manage OAuth sessions, a.k.a "Single Page
|
9
|
+
Applications" (SPA).
|
9
10
|
|
10
11
|
> [!IMPORTANT]
|
11
12
|
>
|
@@ -44,7 +45,7 @@ needs of your application and must respect the [ATPROTO] spec.
|
|
44
45
|
"tos_uri": "https://my-app.com/tos",
|
45
46
|
"policy_uri": "https://my-app.com/policy",
|
46
47
|
"redirect_uris": ["https://my-app.com/callback"],
|
47
|
-
"scope": "
|
48
|
+
"scope": "atproto",
|
48
49
|
"grant_types": ["authorization_code", "refresh_token"],
|
49
50
|
"response_types": ["code"],
|
50
51
|
"token_endpoint_auth_method": "none",
|
@@ -163,22 +164,24 @@ initialize itself. Note that this operation must be performed once (and **only
|
|
163
164
|
once**) whenever the web app is loaded.
|
164
165
|
|
165
166
|
```typescript
|
166
|
-
const result: undefined | {
|
167
|
+
const result: undefined | { session: OAuthSession; state?: string } =
|
167
168
|
await client.init()
|
168
169
|
|
169
170
|
if (result) {
|
170
|
-
const {
|
171
|
+
const { session, state } = result
|
171
172
|
if (state != null) {
|
172
|
-
console.log(
|
173
|
+
console.log(
|
174
|
+
`${session.sub} was successfully authenticated (state: ${state})`,
|
175
|
+
)
|
173
176
|
} else {
|
174
|
-
console.log(`${
|
177
|
+
console.log(`${session.sub} was restored (last active session)`)
|
175
178
|
}
|
176
179
|
}
|
177
180
|
```
|
178
181
|
|
179
182
|
The return value can be used to determine if the client was able to restore the
|
180
|
-
last used session (`
|
181
|
-
result of an authorization redirect (both `
|
183
|
+
last used session (`session` is defined) or if the current navigation is the
|
184
|
+
result of an authorization redirect (both `session` and `state` are defined).
|
182
185
|
|
183
186
|
### Initiating an OAuth flow
|
184
187
|
|
@@ -217,18 +220,21 @@ the OAuth server). The promise will reject if the user cancels the sign in
|
|
217
220
|
|
218
221
|
When the user is redirected back to the application, the OAuth response will be
|
219
222
|
available in the URL. The `BrowserOAuthClient` will automatically detect the
|
220
|
-
response and handle it when `client.init()` is called.
|
223
|
+
response and handle it when `client.init()` is called. Alternatively, the
|
224
|
+
application can manually handle the response using the
|
225
|
+
`client.callback(urlQueryParams)` method.
|
221
226
|
|
222
227
|
### Restoring a session
|
223
228
|
|
224
|
-
The client keeps
|
225
|
-
Regardless of the
|
226
|
-
any other session can be loaded
|
227
|
-
method
|
229
|
+
The client keeps track of all the sessions that it manages through an internal
|
230
|
+
store. Regardless of the session that was returned from the `client.init()`
|
231
|
+
call, any other session can be loaded using the `client.restore()` method. This
|
232
|
+
method will throw an error if the session is no longer available or if it has
|
233
|
+
become expired.
|
228
234
|
|
229
235
|
```ts
|
230
|
-
const
|
231
|
-
const
|
236
|
+
const aliceSession = await client.restore('did:plc:alice')
|
237
|
+
const bobSession = await client.restore('did:plc:bob')
|
232
238
|
```
|
233
239
|
|
234
240
|
In its current form, the client does not expose methods to list all sessions
|
@@ -256,16 +262,19 @@ client.addEventListener(
|
|
256
262
|
|
257
263
|
## Usage with `@atproto/api`
|
258
264
|
|
259
|
-
The `@atproto/api` package provides a way to interact with
|
260
|
-
|
261
|
-
|
262
|
-
`BrowserOAuthClient`
|
263
|
-
instances).
|
265
|
+
The `@atproto/api` package provides a way to interact with multiple Bluesky
|
266
|
+
specific XRPC lexicons (`com.atproto`, `app.bsky`, `chat.bsky`, `tools.ozone`)
|
267
|
+
through the `Agent` interface. The `oauthSession` returned by the
|
268
|
+
`BrowserOAuthClient` can be used to instantiate an `Agent` instance.
|
264
269
|
|
265
270
|
```typescript
|
266
|
-
|
271
|
+
import { Agent } from '@atproto/api'
|
267
272
|
|
268
|
-
await
|
273
|
+
const session = await client.restore('did:plc:alice')
|
274
|
+
|
275
|
+
const agent = new Agent(session)
|
276
|
+
|
277
|
+
await agent.getProfile({ actor: agent.accountDid })
|
269
278
|
```
|
270
279
|
|
271
280
|
Any refresh of the credentials will happen under the hood, and the new tokens
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="node" />
|
2
2
|
import { HandleResolver } from '@atproto-labs/handle-resolver';
|
3
|
-
import { AuthorizeOptions, Fetch,
|
3
|
+
import { AuthorizeOptions, Fetch, OAuthSession, OAuthClient } from '@atproto/oauth-client';
|
4
4
|
import { OAuthClientIdDiscoverable, OAuthClientIdLoopback, OAuthClientMetadataInput } from '@atproto/oauth-types';
|
5
5
|
export type BrowserOAuthClientOptions = {
|
6
6
|
clientMetadata?: OAuthClientMetadataInput;
|
@@ -18,22 +18,22 @@ export declare class BrowserOAuthClient extends OAuthClient implements Disposabl
|
|
18
18
|
readonly [Symbol.dispose]: () => void;
|
19
19
|
constructor({ handleResolver, clientMetadata, responseMode, plcDirectoryUrl, fetch, }: BrowserOAuthClientOptions);
|
20
20
|
init(refresh?: boolean): Promise<{
|
21
|
-
|
21
|
+
session: OAuthSession;
|
22
22
|
state: string | null;
|
23
23
|
} | {
|
24
|
-
|
24
|
+
session: OAuthSession;
|
25
25
|
} | undefined>;
|
26
|
-
restore(sub: string, refresh?: boolean): Promise<
|
26
|
+
restore(sub: string, refresh?: boolean): Promise<OAuthSession>;
|
27
27
|
revoke(sub: string): Promise<void>;
|
28
28
|
signIn(input: string, options: AuthorizeOptions & {
|
29
29
|
display: 'popup';
|
30
|
-
}): Promise<
|
30
|
+
}): Promise<OAuthSession>;
|
31
31
|
signIn(input: string, options?: AuthorizeOptions): Promise<never>;
|
32
32
|
signInRedirect(input: string, options?: AuthorizeOptions): Promise<never>;
|
33
|
-
signInPopup(input: string, options?: Omit<AuthorizeOptions, 'state'>): Promise<
|
33
|
+
signInPopup(input: string, options?: Omit<AuthorizeOptions, 'state'>): Promise<OAuthSession>;
|
34
34
|
private readCallbackParams;
|
35
35
|
signInCallback(): Promise<{
|
36
|
-
|
36
|
+
session: OAuthSession;
|
37
37
|
state: string | null;
|
38
38
|
} | null>;
|
39
39
|
dispose(): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"browser-oauth-client.d.ts","sourceRoot":"","sources":["../src/browser-oauth-client.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAC9D,OAAO,EACL,gBAAgB,EAEhB,KAAK,EACL,
|
1
|
+
{"version":3,"file":"browser-oauth-client.d.ts","sourceRoot":"","sources":["../src/browser-oauth-client.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAC9D,OAAO,EACL,gBAAgB,EAEhB,KAAK,EACL,YAAY,EAEZ,WAAW,EAEZ,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAIL,yBAAyB,EACzB,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,sBAAsB,CAAA;AAO7B,MAAM,MAAM,yBAAyB,GAAG;IACtC,cAAc,CAAC,EAAE,wBAAwB,CAAA;IACzC,cAAc,EAAE,cAAc,GAAG,MAAM,GAAG,GAAG,CAAA;IAC7C,YAAY,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;IACnC,eAAe,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;IAE9B,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;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|
|
96
96
|
await fixLocation(this.clientMetadata);
|
97
97
|
const signInResult = await this.signInCallback();
|
98
98
|
if (signInResult) {
|
99
|
-
localStorage.setItem(`${NAMESPACE}(sub)`, signInResult.
|
99
|
+
localStorage.setItem(`${NAMESPACE}(sub)`, signInResult.session.sub);
|
100
100
|
return signInResult;
|
101
101
|
}
|
102
102
|
const sub = localStorage.getItem(`${NAMESPACE}(sub)`);
|
103
103
|
if (sub) {
|
104
104
|
try {
|
105
|
-
const
|
106
|
-
return {
|
105
|
+
const session = await this.restore(sub, refresh);
|
106
|
+
return { session };
|
107
107
|
}
|
108
108
|
catch (err) {
|
109
109
|
localStorage.removeItem(`${NAMESPACE}(sub)`);
|
@@ -112,9 +112,9 @@ class BrowserOAuthClient extends oauth_client_1.OAuthClient {
|
|
112
112
|
}
|
113
113
|
}
|
114
114
|
async restore(sub, refresh) {
|
115
|
-
const
|
116
|
-
localStorage.setItem(`${NAMESPACE}(sub)`,
|
117
|
-
return
|
115
|
+
const session = await super.restore(sub, refresh);
|
116
|
+
localStorage.setItem(`${NAMESPACE}(sub)`, session.sub);
|
117
|
+
return session;
|
118
118
|
}
|
119
119
|
async revoke(sub) {
|
120
120
|
localStorage.removeItem(`${NAMESPACE}(sub)`);
|
@@ -252,12 +252,12 @@ class BrowserOAuthClient extends oauth_client_1.OAuthClient {
|
|
252
252
|
key: result.state.slice(POPUP_STATE_PREFIX.length),
|
253
253
|
result: {
|
254
254
|
status: 'fulfilled',
|
255
|
-
value: result.
|
255
|
+
value: result.session.sub,
|
256
256
|
},
|
257
257
|
});
|
258
258
|
// Revoke the credentials if the parent window was closed
|
259
259
|
if (!receivedByParent)
|
260
|
-
await result.
|
260
|
+
await result.session.signOut();
|
261
261
|
throw new errors_js_1.LoginContinuedInParentWindowError(); // signInPopup
|
262
262
|
}
|
263
263
|
return result;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"browser-oauth-client.js","sourceRoot":"","sources":["../src/browser-oauth-client.ts"],"names":[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th-client-browser",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.2.0",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "ATPROTO OAuth client for the browser (relies on WebCrypto & Indexed DB)",
|
6
6
|
"keywords": [
|
@@ -37,8 +37,8 @@
|
|
37
37
|
"@atproto/did": "0.1.1",
|
38
38
|
"@atproto/jwk": "0.1.1",
|
39
39
|
"@atproto/jwk-webcrypto": "0.1.2",
|
40
|
-
"@atproto/oauth-client": "0.
|
41
|
-
"@atproto/oauth-types": "0.1.
|
40
|
+
"@atproto/oauth-client": "0.2.0",
|
41
|
+
"@atproto/oauth-types": "0.1.4"
|
42
42
|
},
|
43
43
|
"devDependencies": {
|
44
44
|
"@rollup/plugin-commonjs": "^25.0.7",
|
@@ -59,11 +59,11 @@
|
|
59
59
|
"rollup-plugin-serve": "^1.1.1",
|
60
60
|
"tailwindcss": "^3.4.1",
|
61
61
|
"typescript": "^5.3.3",
|
62
|
-
"@atproto/api": "0.13.
|
63
|
-
"@atproto/oauth-client": "0.
|
64
|
-
"@atproto/oauth-client-browser": "0.
|
65
|
-
"@atproto/oauth-types": "0.1.
|
66
|
-
"@atproto/xrpc": "0.6.
|
62
|
+
"@atproto/api": "0.13.4",
|
63
|
+
"@atproto/oauth-client": "0.2.0",
|
64
|
+
"@atproto/oauth-client-browser": "0.2.0",
|
65
|
+
"@atproto/oauth-types": "0.1.4",
|
66
|
+
"@atproto/xrpc": "0.6.1"
|
67
67
|
},
|
68
68
|
"scripts": {
|
69
69
|
"build": "tsc --build tsconfig.build.json",
|