This frontend microservice is used to create or break a relationship between an agent and a client for a given service. The relationship created is in the form of contract called mandate which has details of client & agent among few other things.
Once the mandate has been agreed it's stored in a datastore and ensures that the agent can work on behalf of the client for that service.
| PATH | Supported Methods |.conf
|------|-------------------|
| /mandate/agent/service
| Shows a list of services that the agent can create mandates for |
| /mandate/agent/summary/:service
| Shows any pending or current clients for a given service. Also has a link to create a mandate for a new client |
| /mandate/email/:service
| Starts the process of creating a mandate for a new client |
| /mandate/client/email
| Starts the process for the client to accept a mandate |
Note: If this is the first service to be added after ATED then the feature switch at MandateFeatureSwitches.singleService in FeatureSwitches will have to be removed.
This feature switch causes the /mandate/agent/service
to be skipped and go straight to the ATED summary page.
Update the page selectService.scala.html to add any new services that the agent can choose from.
Ensure that you update application.conf with the links back to the dev version of your service. i.e.
delegated-service-redirect-url {
ated = "http://localhost:9916/ated/account-summary"
}
delegated-service-home-url {
ated = "http://localhost:9916/ated/welcome"
}
Property | Description |
---|---|
delegated-service-redirect-url | The page that the agent will return to when they click on a client after it's accepted the mandate |
delegated-service-home-url | After the agent has created a mandated they're told to get the client to visit this page to log in and accept it |
This service is written in Scala and Play, so needs the latest JRE to run.
This user logs into this service using the Government Gateway
In the context of this service we use the following acronyms:
-
API: Application Programming Interface
-
HoD: Head of Duty
-
JRE: Java Runtime Environment
-
JSON: JavaScript Object Notation
-
URL: Uniform Resource Locator
This code is open source software licensed under the Apache 2.0 License.