Use the wget command to determine whether your Amazon WorkLink pageload request re-directs to additional identity providers or other domains. If there is a redirect URL in the path of your Amazon WorkLink page request, you can add the additional domain by following the steps in the Amazon WorkLink administration guide. If your domains use any additional authorization providers besides the one configured through your fleet’s identity provider configuration, you can associate those providers to your fleet.
 
Contents
  1. Pre-requisites
  2. Tasks

Sign in to your laptop or desktop computer on your company network. Make sure that you have access to the domains associated with Amazon WorkLink.

Install the wget command on your computer.

OSX

1. Install HomeBrew with the following command.

/usr/bin/ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)

2. Install wget with the following command.

brew install wget

Windows

Follow the steps in this guide to install wget on your Windows computer.

Linux

Run the following command in your terminal.

sudo apt-get install wget

1. Open terminal.

2. Enter the wget command for the domain that you want to associate with Amazon WorkLink.

wget {ASSOCIATED_DOMAIN} 2>&1 | grep Location:

The following example demonstrates a wget command response that includes a redirect.

~ user$ wget https://example.com 2>&1 | grep Location:
Location: https://example_signin.com/xyzpath [following]

Because the wget command returned a location parameter, the website request for https://example.com re-directs to https://example_signin.com. For the page request to succeed in Amazon WorkLink, you will need to add https://example_signin.com to the list of domains associated with Amazon WorkLink (link).