I’ve been experimenting a bit with #Firefox and the #ActivityPub API, inspired by the work of @evan: https://github.com/social-web-foundation/activitypub-browser-extension
-
@pfefferle @evan Cheers!
I now get a log-in page, and after logging in, I get a message "OAuth client not found."
Looks like it's a bit early for me to be testing this, but looking forward to it being finished.@mancavgeek have you still the application password credentials in the advanced fields? if so, please remove these.
you have to use the `@usernam@domain.tld` handle or the URL of your actor in the field. when you send me a screenshot of how you set up the addon, I can have a look! you can also DM me if you do not want to discuss in public!
-
@mariusor @pfefferle it's also not implied to be required!
It's a good note, though. I'll add it as an issue for 1.1.
@evan I'm reading the explanation on client to server Create activities as one:
> When a Create activity is posted, the actor of the activity SHOULD be copied onto the object's attributedTo field.
https://www.w3.org/TR/activitypub/#create-activity-outbox
PS. I've added a short explanation of my position to the ticket you added. (Even shorter: as a client I want my activities to be propagated verbatim, unless the spec says otherwise)
ActivityPub
The ActivityPub protocol is a decentralized social networking protocol based upon the [ActivityStreams] 2.0 data format. It provides a client to server API for creating, updating and deleting content, as well as a federated server to server API for delivering notifications and content.
(www.w3.org)
-
@evan I'm reading the explanation on client to server Create activities as one:
> When a Create activity is posted, the actor of the activity SHOULD be copied onto the object's attributedTo field.
https://www.w3.org/TR/activitypub/#create-activity-outbox
PS. I've added a short explanation of my position to the ticket you added. (Even shorter: as a client I want my activities to be propagated verbatim, unless the spec says otherwise)
ActivityPub
The ActivityPub protocol is a decentralized social networking protocol based upon the [ActivityStreams] 2.0 data format. It provides a client to server API for creating, updating and deleting content, as well as a federated server to server API for delivering notifications and content.
(www.w3.org)
-
@pfefferle yes, that's what I do.
Get actor based on the OAuth2 token -> check it against the outbox -> check if it matches the activity actor.
-
@pfefferle yes, that's what I do.
Get actor based on the OAuth2 token -> check it against the outbox -> check if it matches the activity actor.
@mariusor @evan but then it is totally fine to skip it and auto set it with the OAuth Actor!? This saves a step

The only reason where it might be necessary would be a persona setup. You have one OAuth Account but want to publish as different persona Actors. But even that case does not make an `Actor` a required field!?
-
@pfefferle yes, that's what I do.
Get actor based on the OAuth2 token -> check it against the outbox -> check if it matches the activity actor.
@pfefferle and since that's basically what you also need to do with the server to server activities (extract actor from signature -> check against the inbox -> check it matches activity's actor), that's a bonus that I don't need a separate pass (at this point) for the two flows.
PS. I also don't find difficult to conceive a client/server where the actor that generated the token or signature can be *different* than the actor of the activity.
-
@mariusor @evan but then it is totally fine to skip it and auto set it with the OAuth Actor!? This saves a step

The only reason where it might be necessary would be a persona setup. You have one OAuth Account but want to publish as different persona Actors. But even that case does not make an `Actor` a required field!?
@pfefferle like I said, I can imagine a setup where a token from an actor is authorized to post to an outbox of another actor.
Personally I don't see this kind of "optimization" being worth it. Explicit is always better than implicit.
-
@pfefferle and since that's basically what you also need to do with the server to server activities (extract actor from signature -> check against the inbox -> check it matches activity's actor), that's a bonus that I don't need a separate pass (at this point) for the two flows.
PS. I also don't find difficult to conceive a client/server where the actor that generated the token or signature can be *different* than the actor of the activity.
-
-
I’ve been experimenting a bit with #Firefox and the #ActivityPub API, inspired by the work of @evan: https://github.com/social-web-foundation/activitypub-browser-extension
The result is a little Firefox add-on that lets you interact with Fediverse content directly in your browser, without having to copy and paste URLs into search fields:
GitHub - pfefferle/fedifox: Like, share, follow and reply to the ActivityPub object behind any web page from your own fediverse account.
Like, share, follow and reply to the ActivityPub object behind any web page from your own fediverse account. - pfefferle/fedifox
GitHub (github.com)
Is it down or is something going wrong when trying it with Bonfire? When signing in after the SSO flow I get redirected to https://CODE1.extensions.allizom.org/?code=CODE2 which doesn't load.
-
@pfefferle yes, that's what I do.
Get actor based on the OAuth2 token -> check it against the outbox -> check if it matches the activity actor.
@mariusor @pfefferle that makes sense.
Requiring a property that can only have one value you can easily derive from other data does not.
-
@mariusor @pfefferle that makes sense.
Requiring a property that can only have one value you can easily derive from other data does not.
@evan sure, but I would be careful about making assumptions about which data is there.
OAuth2 is mentioned in passing in the specification, and there's no explicit requirement that I remember that there's a direct connection between the OAuth2 token and an actor.
You can perhaps add to the spec that *if* the actor is missing it should be inferred from the outbox.
To me, even that's a bit tenuous because it requires further assumptions that the relationship actor <-> outbox collection is bijective. But nowhere does it say that if you have a collection you can find which actor owns it.
1/2
-
@evan sure, but I would be careful about making assumptions about which data is there.
OAuth2 is mentioned in passing in the specification, and there's no explicit requirement that I remember that there's a direct connection between the OAuth2 token and an actor.
You can perhaps add to the spec that *if* the actor is missing it should be inferred from the outbox.
To me, even that's a bit tenuous because it requires further assumptions that the relationship actor <-> outbox collection is bijective. But nowhere does it say that if you have a collection you can find which actor owns it.
1/2
Yes, there's heuristics you can apply to find an owner: attributedTo, iterate through actors and look if their outbox matches, etc.
But from where I'm standing we have three orthogonal pieces of information when receiving a client to server request:
1. An activity.
2. An outbox collection.
3. A valid authorization mechanism.You're telling me that they all point to the same actor, but based on my reading of the spec I am not convinced.
From my perspective as a library implementer, I see no reason why these three need to be the same.
So, yes, if you want this to be explicit, you should add it to the spec in some way.
2/2
-
@evan sure, but I would be careful about making assumptions about which data is there.
OAuth2 is mentioned in passing in the specification, and there's no explicit requirement that I remember that there's a direct connection between the OAuth2 token and an actor.
You can perhaps add to the spec that *if* the actor is missing it should be inferred from the outbox.
To me, even that's a bit tenuous because it requires further assumptions that the relationship actor <-> outbox collection is bijective. But nowhere does it say that if you have a collection you can find which actor owns it.
1/2
> But nowhere does it say that if you have a collection you can find which actor owns it.
I would venture to say that I can think of a few use cases where this is not immediately possible:
1/ multiple actors have the same outbox
2/ there is an explicit constraint that makes finding the actor impossible (a non public actor on a remote server maybe).These aren't fully reasoned through examples, so there might be other implications I'm missing that invalidates them.
But it shows that perhaps leaving out exact expectations can leave room for interesting usages.
-
Yes, there's heuristics you can apply to find an owner: attributedTo, iterate through actors and look if their outbox matches, etc.
But from where I'm standing we have three orthogonal pieces of information when receiving a client to server request:
1. An activity.
2. An outbox collection.
3. A valid authorization mechanism.You're telling me that they all point to the same actor, but based on my reading of the spec I am not convinced.
From my perspective as a library implementer, I see no reason why these three need to be the same.
So, yes, if you want this to be explicit, you should add it to the spec in some way.
2/2
@mariusor @pfefferle Your takes are great for tightening the spec, so please keep sharing them!
Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.
Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.
Con il tuo contributo, questo post potrebbe essere ancora migliore 💗
Registrati Accedi
Citiverse è un progetto che si basa su NodeBB ed è federato! | Categorie federate | Chat | 📱 Installa web app o APK | 🧡 Donazioni | Privacy Policy