Need clarification on xrpc api calls to pds and appview #3468
Replies: 2 comments
-
Just to elaborate on opensource project code. In whitewind blog, the BlogViewer makes queries like this, where the ATPBaseClient seems to be querying the user's pds.
However, how does pds know where the appview is to query? |
Beta Was this translation helpful? Give feedback.
-
Authentication is a feature of PDS, so when making a request with authentication, you need to go through PDS. Strictly speaking, appview authenticates using tokens issued by PDS and does not support password or OAuth. By the way, as written in the readme, |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, I have been looking at the atproto documentation and some of the open sourced projects to understand how to code up an appview but I got a bit confused as to how to implement the appview.
In the bsky doc, it says "Authenticated requests are usually made to the user's PDS, with automatic service proxying. Authenticated requests can be used for both public and non-public endpoints." https://docs.bsky.app/docs/api/app-bsky-actor-get-preferences
Lastly, the doc also says public endpoint are made directly to bluesky's appview apis. For my own appview, how do I query my appview endpoint with my client?
In atproto readme (https://github.com/bluesky-social/atproto/blob/main/packages/api/README.md), it seems that we can do this to bluesky's endpoint, but is that because the ATPAgent has bluesky apis implemented...
Beta Was this translation helpful? Give feedback.
All reactions