Skip to content
This repository was archived by the owner on May 22, 2020. It is now read-only.
This repository was archived by the owner on May 22, 2020. It is now read-only.

Api to retrieve desktop owner settings for services #761

@datamadic

Description

@datamadic

Api to retrieve desktop owner settings for services

RUN-5112

The goal is for services to be able to retrieve desktop owner level settings. Much of the details surrounding what these look like can be found here.

The proposed API would be added to the v2 System namespace as:

fin.System.getServiceConfiguration({name: 'whatever'})
    .then(conf => {
        conf.name               //=> whatever
        conf.appDirectoryHost   //=> https://app-directory.openfin.co
        conf.manifestUrl        //=> https://example.org/services/whatever/app.json
        conf.config             //=> {service specific json blob}
    })
    .catch(err => {/* xyz service is not configured in desktop owner settings file... */})

Do we care about which app directory it was fetched from here (appDirectoryHost)?

This assumes that service configurations are not "private" per se, meaning that any app can get any service configuration. To restrict this info to just the service itself we would need some work provide apps with the concept of being a service and an identity as such.

I think that there is a larger conversation around service discovery and the apps themselves actually knowing that they are being launched as services that needs more discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions