Skip to content

FES integration to retrieve Client Configuration (OrgRules) #276

Description

@tomholub

part of #275

  1. steps 1-5 must be done first from issue prepwork for retrieving client configuration (OrgRules) from FES #339
  2. remove toast message from step 5 from issue prepwork for retrieving client configuration (OrgRules) from FES #339
  3. instead of showing toast, call GET <fes>/api/v1/client-configuration?domain=example.com (no authentication). The response is { clientConfiguration: DomainRulesJson }. If this step was not skipped (because FES was not running at all earlier when testing /api/ and this call fails, show error and don't let user proceed unless they can successfully retry this call.
  4. Save this OrgRules json into storage, separately for each account. If it was in storage for this account before, blindly overwrite the previous OrgRules.

Here's an example: https://fes.flowcrypt.com/api/v1/client-configuration?domain=flowcrypt.com

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions