Skip to content

Commit

Permalink
Client SDK rework (#2483)
Browse files Browse the repository at this point in the history
* feat(api): support creation of oauth based AtpAgents

* oauth: misc fixes for confidential clients

* fix(xprc): remove ReadableStream.from polyfill

* OAuth docs tweaks (#2679)

* OAuth: clarification about client_name being shown

* OAuth: re-write handle resolution privacy concern

* avoid relying on ReadableStream.from in xrpc-server tests

* feat(oauth-types): expose "ALLOW_UNSECURE_ORIGINS" constant

* feat(handle-resolver): expose "AtprotoIdentityDidMethods" type

* fix(oauth-client): ensure that the oauth metadata document contains client_id_metadata_document_supported

* fix(oauth-types): prevent unknown query string in loopback client id

* fix(identity-resolver): check that handle is in did doc's "alsoKnownAs"

* feat(oauth-client:oauth-resolver): allow logging in using either the PDS URL or Entryway URL

* fix(oauth-client): return better error in case of invalid "oauth-protected-resource" status code

* refactor(did): group atproto specific checks in own

* feat(api): relax typing of "appLabelers" and "labelers" AtpClient properties

* allow any did as labeller (for tests mainly)

* fix(api): allow to override "atproto-proxy" on a per-request basis

* remove release candidate versions from changelog

* update changeset for api and xrpc packages

* Add missing changeset

* revert RC versions

* Proper wording in OAUTH.md api example

* remove "pre" changeset file

* xrpc: restore original behavior of setHEader and unsetHeader

* docs: add comment for XrpcClient 's constructor arg

* feat(api): expose "schemas" publicly

* feat(api): allow customizing the whatwg fetch function of the AtpAgent

* docs(api): improve migration docs

* docs: change reference to BskyAgent to AtpAgent

* docs: mention the breaking change regarding setSessionPersistHandler

* fix(api): better split AtpClient concerns

* fix(xrpc): remove unused import

* refactor(api): simplify class hierarchu by removeing AtpClient

* fix(api): mock proper method for facets detection

* restore ability to restore session asynchronously

* feat(api): allow instantiating Agent with same argument as super class

* docs(api): properly extend Agent class

* style(xrpc): var name

* docs(api): remove "async" to header getter

---------

Co-authored-by: Devin Ivy <[email protected]>
Co-authored-by: bnewbold <[email protected]>
Co-authored-by: Hailey <[email protected]>
  • Loading branch information
4 people authored Aug 12, 2024
1 parent 8092715 commit b934b39
Show file tree
Hide file tree
Showing 355 changed files with 7,765 additions and 5,592 deletions.
6 changes: 6 additions & 0 deletions .changeset/brown-dryers-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@atproto/oauth-client": patch
"@atproto/jwk-jose": patch
---

Misc fixes for confidential client usage
5 changes: 5 additions & 0 deletions .changeset/early-pugs-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@atproto/jwk-jose": patch
---

Allow importing JoseKey without specifying a kid
7 changes: 7 additions & 0 deletions .changeset/friendly-bikes-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@atproto/oauth-client-node": patch
"@atproto/oauth-client": patch
"@atproto/oauth-types": patch
---

Better implement aptroto OAuth spec
5 changes: 5 additions & 0 deletions .changeset/funny-schools-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@atproto-labs/handle-resolver": patch
---

Updated to use "AtprotoDid" utils from @atproto/did
5 changes: 5 additions & 0 deletions .changeset/happy-socks-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@atproto/did": patch
---

Expose atproto specific types and utilities
5 changes: 5 additions & 0 deletions .changeset/honest-bears-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---

---

Update tests according to new @atproto/xrpc implementation
5 changes: 5 additions & 0 deletions .changeset/honest-hornets-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@atproto/lexicon": patch
---

Add the ability to instantiate a Lexicon from an iterable, and to use a Lexicon as iterable.
Loading

0 comments on commit b934b39

Please sign in to comment.