-
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
Allow an app to retrieve its own AppMetadata
#603
Comments
Just following up here:
|
There are a few possible workflows that would require an app to be able to retrieve its own
These workflows primarily relate to utility functions, rather than security. I agree that we should not encourage situations where an app is required to add its own metadata to a context and to rely on that for security or access control. This should be clarified in the relevant documentation for any function added.
I assume this relates to #520 where it is proposed that the Desktop Agent be responsible for supplying the originating app metadata, which is more secure, but only if you trust the Desktop Agent implementation (which @bingenito pointed out can itself also be spoofed, although the facility would still be useful/appreciated). This issue essentially seeks to provide parity to the application, allowing it to know its own metadata (which #520 will expose to other apps). |
As discussed at the SWG meeting today, we'll proceed with an alternative proposal to implement this use-case, without increasing the surface area of the DesktopAgent API, by adding the app's own metadata to the I.e. update: public interface ImplementationMetadata {
fdc3Version: string;
provider: string;
providerVersion?: string;
} to public interface ImplementationMetadata {
fdc3Version: string;
provider: string;
providerVersion?: string;
appMetadata: AppMetadata;
} |
Enhancement Request
There are times when it may be useful for an application to be able to retrieve its own
AppMetadata
via the Desktop Agent API. AnAppMetadata
object encodes the Desktop Agent's name, appId and instance metadata for a particular app instance and can be used, for example, to target future intents at it.Add a new required (MUST) API call for an app to retrieve its own metadata:
Use Case:
ChatRoomRef
context doesn't work without a reference to the application that created the Chat room. Whilst the application can populate that returned context with its own name, that doesn't necessarily match the configuredname
orappId
of the app as far as the desktop agent is concerned and can't be used to target subsequent intents at it.The text was updated successfully, but these errors were encountered: