Authentication
In order to access the Management API, you must be authenticated as a user with sufficient permissions to manage Gateway resources.
Authentication is handled by the REST Management API service. There are two ways to authenticate, HTTP Basic authentication or Client Certificate mutual authentication. We recommend that you implement client certificate mutual authentication for the strongest security. Follow these steps to implement client certificate mutual authentication:
Generate the client certificate and private key
- In Policy Manager, go to Tasks, Manage Private Keys.
- Click Create.
- Enter an alias and click Create. For Internal Identity Providers, the alias must match the login for the migration Administrator.
- Double-click the certificate in the list, and determine an export method:
- To export the certificate and key, click Export Key, optionally specify a password, and save to a location.
- To export with the private keys, click View Certificate, click Export, and save to a location.
- (Optional). You can delete the private key that was used to create the certificate. Policy Manager does not need it.
Associate the client certificate with the Administrator
- In Policy Manager, click the Identity Providers tab.
- Under Identity Providers, right-click Internal Identity Provider and select Search Identity Provider.
- Double-click the migration Administrator.
- Select the Certificate tab, click Import.
- In the Add Certificate Wizard, select Import from a File.
- Click Browse to find your certificate and complete the wizard.
Authentication Requirements and Behaviours
When authenticated the Gateway will respond as follows:
- When attempting to access resources, you will receive a "401 Permission Denied" response if you have not been granted access.
- When listing resources, only the resources to which you have access will be returned. This may result in an empty list or only a partial list of the actual resources available on the Gateway.
Access to the Dependency analysis or Migration API calls require administrator access to the Gateway.