---
agentTools:
  projectIndex: https://wayf-cloud.readme.io/llms.txt
---

# Integration Steps

Summary of the Service Provider actions

The following table summarizes the events that can occur when a user visits a Service Provider and lists the actions required from the Service Provider for the purposes of the integration to the WAYF Cloud.

[block:parameters]
{
  "data": {
    "h-0": "Event",
    "h-1": "Actions",
    "0-0": "A user visits the Service Provider for the first time",
    "0-1": "1. Generate a wayf-local ID for this user\n\n2. Use the wayf-local ID to  [Create](https://wayf-cloud.readme.io/reference/create) this device at the WAYF Cloud\n\n3. Inject the WAYF Widget URL in the HTTP response\n\n4. Set the wayf-local ID in the 'set-cookie' header of the HTTP response\n\n5. Optionaly,  [Discover](https://wayf-cloud.readme.io/reference/deviceidhistory-1) possible Identity Providers that this device has used in other Service Providers",
    "1-0": "A returning user (i.e. wayf-local cookie included in the request) visits the Service Provider again",
    "1-1": "* [Discover](https://wayf-cloud.readme.io/reference/deviceidhistory-1) possible Identity Providers that this device has used in other Service Providers",
    "2-0": "The user selects to Sign In to the Service Provider",
    "2-1": "If not done already,\n* [Discover](https://wayf-cloud.readme.io/reference/deviceidhistory-1) possible Identity Providers that this device has used in other Service Providers",
    "3-0": "The user Signs In successfully to the Service Provider using an organizational Identity Provider",
    "3-1": "* [Share](https://wayf-cloud.readme.io/reference/testinput) the identity provider metadata in the WAYF Cloud",
    "4-0": "The user selects to not remove an Identity Provider so that this is not included in the future as a suggestion for Sign In",
    "4-1": "* [Delete](https://wayf-cloud.readme.io/reference/delete-an-entry-from-the-devices-history) this Identity Provider for this device"
  },
  "cols": 2,
  "rows": 5
}
[/block]