> For AI agents: [llms.txt](https://docs.trustedauth.com/llms.txt) provides a Markdown index of this documentation.

# Fastly

Fastly is a cloud computer services provider that helps developers run, secure, and deliver websites and applications by generating an admin panel on top of their data. See <https://www.fastly.com>. You can protect access to Fastly by integrating Fastly with Identity as a Service. Once integrated, users can use single sign-on to log in to their Fastly account through Identity as a Service.

note

This integration was tested using Identity as a Service version 5.33 and Fastly Trial version December 2023. Other versions of Fastly may require integration and configuration steps that differ from those documented in this procedure. For other versions of Fastly, use this procedure as a starting point for integrating Fastly. In the event of other issues, contact <support@entrust.com> for assistance.

To integrate Fastly with Identity as a Service, you must do the following:

Before you begin, open two browser windows. In one window, log in to your Fastly Administrator account. In the other window, log in to your IDaaS administrator account.

## Step 1: Obtain the Assertion Consumer Service URL and Entity ID from Fastly

1. Log in to Fastly. The Fastly Home page appears.

2. Click your login account profile in the top-right and select **Account** from the drop-down list. The **Company Settings** page appears.

3. Click **Single Sign-on** from the left pane of the menu. The **Single sign-on** page appears.

4. Click **Add SAML Configuration**. The **Set up single sign-on** page appears.

5. Open a text editor such as Notepad, and copy and save the following.

   Assertion Consumer Service URI

   Audience URI (SP Entity ID)

6. Leave this window and page open. You return to it in _Step 5: Configure Fastly for Identity as a Service authentication_.

## Step 2: Add Fastly to Identity as a Service

Add Fastly as an application to Identity as a Service

1. Log into your Identity as a Service administrator account.

2. Click Menu icon **>** **Security > Applications**. The **Applications** **Lists** page appears.

3. Click **Add**. The **Select an Application Template** page appears.

4. Do one of the following:

   - Select **SAML Cloud Integrations** from the search drop-down list and scroll to find the application you want to add to IDaaS.
   - In the **Search bar**, enter a search option to filter for the application you want to add to IDaaS.

5. Click **Fastly**. The **Add Fastly** page appears.

6. Enter an **Application Name**.

7. Enter an **Application Description**.

8. Optional. Add a custom application logo.

   1. Click Plus icon next to **Application Logo**. The **Upload Logo** dialog box appears.
   2. Click Upload icon to select an image file to upload.
   3. Browse to select your file and click **Open**. The **Upload Logo** dialog box reappears showing your selected image.
   4. If required, resize your image.
   5. Click **OK**.

9. Select the **Authentication Flow** that appears to users during login.

10. Click **Next**. The **General** page appears.

11. In the **Default** **Assertion Consumer Service URL**, enter the **Assertion Consumer Service URL** you copied in _Step 1: Obtain the Assertion Consumer Service URL and Entity ID from Fastly_.

12. In the **Service Provider Entity ID** field, enter the **Entity ID** you copied in _Step 1: Obtain the Assertion Consumer Service URL and Entity ID from Fastly_.

13. Enter the **SAML Session Timeout** to the time when the SAML Assertion times out. The maximum is 720 minutes.

14. Enter the **Max Authentication Age (seconds)** to set the maximum amount of time that can elapse before a user is required to reauthenticate during a new login attempt. This applies for both SP-initiated and IDP-initiated login. Set this field to -1 to disable this feature.

15. From the **SAML NameID Attribute** drop-down list, select **Email**.

16. From the **SAML NameID Encoding Format** drop-down list, select **Email**.

17. Select the **SAML Signing Certificate**.

18. Optional: Select **Respond Immediately for Unsuccessful Responses** to return to the application immediately after a login failure, rather than allow user to try again with a different userID.

19. Deselect **Enable Go Back Button** if you do not want users to be able to go back to the Fastly login page to log in.

20. Select **Show Default Assertion Consumer URL Service in the My Profile**. When selected, the Default Assertion Consumer URL appears in a user's My Profile page in addition to relay states and Alternative Assertion Consumer URLs.

21. Leave the remaining settings at the default values.

22. Click **Submit**.

## Step 3: Add a resource rule

See [Create resource rules](/docs/authentication-and-security/create-and-manage-resource-rules.md).

## Step 4: Download the metadata file from Identity as a Service

## Step 4: Download the metadata file from Identity as a Service

Download the Metadata file from Identity as a Service

1. In Identity as a Service, click Menu icon **>** **Security > Applications**. The **Applications List** page appears.

2. Do one of the following:

   - Click Cloud Download icon next to the application you are integrating with Identity as a Service.
   - Click Ellipsis Vertical icon next to the application you are integrating with Identity as a Service and select **SAML IDP Metadata**.

   The **SAML Application Metadata** dialog box appears.

3. **Select the certificate to include in the SAML IDP Metadata file** from the drop-down list.

4. If applicable, **Select the domain to include in the SAML IDP Metadata** file from the drop-down list.

5. Enter the **Lifetime, in days, for the SAML IDP Metadata file**. The value must be between 2 and 730.

6. Do one of the following, as required:

   - Copy the **Public Endpoint** to paste into your SAML application being used Identity Provider authentication.
   - Click **Download**.

note

If you are using multiple domains, you must download each domain's metadata file separately because the values in the metadata file vary for each domain.

## Step 5: Configure Fastly for Identity as a Service authentication

1. Return to the Fastly page you left open in _Step 1: Obtain the Assertion Consumer URL and Entity ID from Fastly_.
2. Click **Browse for the metadata file**.
3. Select the metadata file you downloaded in _Step 4: Download the metadata file from Identity as a Service_.
4. If the **Upload** is not successful, open the XML metadata file with a text editor and remove the values cacheDuration="P0Y0M1DT0H0M0.000S.
5. After successful upload, click **Save and enable SSO**.

## Step 6: Test the integration

Test Identity as a Service redirect log in

1. Log in to your Identity as a Service account.
2. Go to your **My Profile** page if you are not already there.
3. Under **Applications**, click **Fastly**.
4. Respond to the second factor authentication challenge. If you respond successfully, you are logged in to Fastly.
