-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require propagation of originating application identity on context/intent handlers #520
Comments
I would suggest that rather than altering or wrapping context objects that we consider adding a second argument to context and intent handler functions instead that would allow them to receive this info alongside messages. E.g. update: type ContextHandler = (context: Context) => void; to: type ContextHandler = (context: Context, sourceMetadata: AppMetadata) => void; (The changes to the proposed IntentHandler type would be the same) I believe this would be tidier and a non-breaking change to existing (javascript) implementations. Its also worth noting that there have, historically, been objections to making such changes (I've previously proposed much the same) - particularly as this exposes the information on whats running on the desktop, and potentially control of comms, to the applications rather than the owner of the desktop. Whereas, controls at the desktop agent level instead are in the hands of the desktop owner. |
I think we should be concerned about future-proofing compatibility of the function signature. This alternate signature would allow future expansion without breaking changes:
|
@bingenito Let me know if you're going to be able to have a go at this before the meeting next week (Thurs 28th April). If not we can find another contributor to give it a go. |
@kriswest I kept trying to believe I could juggle it and wanted to do it, but I should have admitted lack of time much earlier as to not put it too far behind in scheduling. Sorry. Please see if we can line up someone else to do the PR. |
No problem @bingenito, we'll get it done ;-) |
@thorsent seems a reasonable suggestion, can you suggest any additional metadata that we might want to return in future (to provide a use-case for wrapping the source metadata)? |
@robmoffat FDC3 only contemplates interop between apps for a single user, even if you are using an intent like If there's a use case for identity on intent handlers, it would only be through desktop agent bridging, and then only to confirm that its the same user on each of the bridged desktop agents (which is limiting rather than enabling, but may be desired by some vendors ¯\_(ツ)_/¯ ). |
Enhancement Request
As of today, when an application listens to intents or context change, there is no information related to the identity of the originator in the context data
Use Case
Solution Proposals
Open question
Would it be of interest to introduce the boundaries concept in the agent through FDC3?
The text was updated successfully, but these errors were encountered: