Skip to content

Commit 9464bd1

Browse files
Update docs about authenticated requests.
1 parent e30bfd5 commit 9464bd1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/architecture-overview.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,21 +172,21 @@ of performing this task for us:
172172
3. **RESTRequest**
173173

174174
Represents a REST API request which will be used to contact to the site directly. (Skipping Jetpack tunnel)
175-
These requests are authenticated using application passwords.
175+
These requests are then authenticated using an application password using `AuthenticatedRESTRequest`.
176176

177177
4. **AuthenticatedDotcomRequest**
178178

179-
Injects a set of Credentials and a custom user-agent header into anything that conforms to the URLConvertible protocol. Usually wraps up
180-
a DotcomRequest (OR) JetpackRequest.
179+
Injects a WordPress.com authentication token and a custom user-agent header into a URLRequest.
180+
Used for authenticating a DotcomRequest (OR) JetpackRequest.
181181

182182
5. **AuthenticatedRESTRequest**
183183

184-
Injects application password and a custom user-agent header into anything that conforms to the URLConvertible protocol. Usually wraps up
185-
a RESTRequest.
184+
Injects application password and a custom user-agent header into a URLRequest.
185+
Used for authenticating `RESTRequest`.
186186

187187
6. **UnauthenticatedRequest**
188188

189-
Wraps up a `URLConvertible` with a custom user-agent header. Used when the request does not require WordPress.com authentication.
189+
Wraps up a `URLRequest` with a custom user-agent header. Used when the request does not require WordPress.com authentication.
190190

191191
### Remote Endpoints
192192

0 commit comments

Comments
 (0)