pub struct Endpoints {
pub proxy_url: Option<Iri>,
pub oauth_authorization_endpoint: Option<Iri>,
pub oauth_token_endpoint: Option<Iri>,
pub provide_client_key: Option<Iri>,
pub sign_client_key: Option<Iri>,
pub shared_inbox: Option<Iri>,
pub upload_media: Option<Iri>,
}Expand description
Contents of {@link Actor}’s endpoints.
The type https://www.w3.org/ns/activitystreams#Endpoints.
Fields§
§proxy_url: Option<Iri>Endpoint URI so this actor’s clients may access remote ActivityStreams
objects which require authentication to access. To use this endpoint,
the client posts an x-www-form-urlencoded id parameter with the value
being the id of the requested ActivityStreams object.
If OAuth 2.0 bearer tokens [RFC 6749] [RFC 6750] are being used for authenticating client to server interactions, this endpoint specifies a URI at which a browser-authenticated user may obtain a new authorization grant.
oauth_token_endpoint: Option<Iri>If OAuth 2.0 bearer tokens [RFC 6749] [RFC 6750] are being used for authenticating client to server interactions, this endpoint specifies a URI at which a client may acquire an access token.
provide_client_key: Option<Iri>If Linked Data Signatures and HTTP Signatures are being used for authentication and authorization, this endpoint specifies a URI at which browser-authenticated users may authorize a client’s public key for client to server interactions.
sign_client_key: Option<Iri>If Linked Data Signatures and HTTP Signatures are being used for authentication and authorization, this endpoint specifies a URI at which a client key may be signed by the actor’s key for a time window to act on behalf of the actor in interacting with foreign servers.
An optional endpoint used for wide delivery of publicly addressed
activities and activities sent to
followers.
sharedInbox endpoints SHOULD also be publicly readable
{@link OrderedCollection} objects containing objects addressed to the
Public special
collection. Reading from the sharedInbox endpoint MUST NOT present
objects which are not addressed to the `Public`` endpoint.
upload_media: Option<Iri>Upload endpoint URI for this user for binary data, such as an image or
video, as described in the ActivityPub Media
Upload extension.
Clients POST a multipart/form-data request containing a file part
(the binary payload) and an object part (an ActivityStreams object shell)
to this endpoint.