1. Home
  2. ...
  3. Login & Access Control
  4. Integrations

Integrations

Setting up login to the v4 API Manager with an identity provider via SAML 2.0.
v4 only

You can establish a connection via SAML with an identity provider so that users are able to log in to the API Manager using their credentials from that provider. The chosen provider must support the SAML 2.0 standard.

You can set up the connection on the Integrations screen.

TIP

See below some useful tips for configuring the integration with the API Manager on your provider.

Configuring a connection with SAML 2.0

To set up a connection with an identity provider, fill in these fields:

  • Name: include the name of your SAML provider.
  • Application ID: include the unique identifier of the API Manager within your SAML provider. It's usually referred to as Application ID or Service Provider Entity ID. Check your provider's documentation for more information.
  • Metadata Type: select whether the metadata will be accessed via "URL" or "File Upload". To locate the Metadata URL or download a valid SAML file, check your identity provider's documentation.
    • If "URL" is selected, enter the address in the Metadata URL field.

    • If "File Upload" is selected, click METADATA UPLOAD and choose a metadata document from your machine.

Deactivating or editing a connection with SAML 2.0

Once active, the connection with the identity provider can be updated at any time. To do so, click any field you want to edit, make the appropriate changes, and click UPDATE CONNECTION.

To disable an active connection, click the DISCONNECT button. Users from the identity provider (regardless of whether they were registered before or after the integration was activated) will not be deleted from the Manager, but will have their access blocked until a password is created/reset, which can be done through the Forgot your password? link on the login screen.

Active connection with buttons to disconnect or update the connection:

Active connection with buttons to disconnect or update the connection

User login and registration

Once a connection with an identity provider has been activated, the Manager login screen will change:

When users click SIGN IN, they will be taken to the login screen of the chosen identity provider and must enter their credentials for access. Users who had been registered on the Manager before the connection was active will no longer be able to log in using the username and password registered on the Manager, only with their credentials from the identity provider.

If it's the user's first access, they will automatically be included as a federated user on the Users screen and assigned the role "API Operations". The role can be changed later by editing the user on the Users screen.

NOTE

"API Operations" is a role that comes with your Manager. If it has been or is deleted, it will be recreated automatically whenever a new federated user is added to the Manager.

If a user that had already been created on the Manager (by the usual user registration process) logs in through the identity provider, their status on the Users screen will be changed to "Federated", but the role they already had will be kept (that is, a Manager Admin user will be turned into a federated user but will keep the Admin role with all the role-specific permissions). See more about federated users here.

Tips for setting up an API Manager application on your identity provider

To enable a SAML 2.0 connection, an API Manager application must be registered in your identity provider. Your provider's official documentation should help you with the necessary configurations, but some specific tips can make the process easier:

Configure the callback URL

You must include the callback URL (Single Sign On URL), which is based on your API Manager's URL: <MANAGER-URL>/api-manager/api/v3/saml/callback.

Set the email attribute

The provider must send the users' email information to the Manager as a SAML attribute. The name of the attribute must be http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress and its type must be Basic. There may be small variations in the settings of each provider, so you might want to check their official documentation.

Example configuration

The connection via SAML 2.0 can be made with the identity provider of your choice. There are several providers; one of them is Okta. To configure it, follow the steps below.

Create an Okta account

If you don't already have one, create an Okta account. Go to https://developer.okta.com/signup/ to access the Okta Developer page.

Create a SAML 2.0 app

To do so, click Applications > Applications and then the Create App Integration button, as shown in the figure below.

Location of the Applications menu within Applications and the Create App Integration button

Then, in the modal screen that opens, select the SAML 2.0 option and click Next.

Location of the SAML 2.0 option

Configure the app

Provide a name for your integration, an icon or logo (optional), and visibility options. Then click Next.

Fill in the fields

On the next screen, fill in the fields:

  • Single sign on URL: callback URL, which is based on your API Manager address: <MANAGER-URL>/api-manager/api/v3/saml/callback;
  • Audience URI (SP Entity ID): the value entered in this field will be used in the API Manager as "application ID";
  • Default RelayState: this field is not mandatory;
  • Name ID format: select EmailAddress.

Further down on the same page, in Attribute Statements (image below), fill in:

  • Name: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress;
  • Name format: select basic;
  • Value: select user.e-mail.

Location of Attribute Statements on the screen

Then click NEXT to complete the registration.

Export the metadata

On the screen that appears when you click NEXT, export the metadata by clicking Identity Provider metadata is available if this application supports dynamic configuration (shown in the image below).

Location of Identity Provider metadata on the screen

The screen that opens will show the content, which can be saved as metadata.xml. Take note of the URL. It will be used to configure your API Manager.

To do so, click the Assignments tab and then click Assign > Assign to People, as shown in the image below.

Steps to link a user to the app

On the screen that opens, click Assign next to your name and email, as shown in the image below.

Location of Assign

On the next screen, click the Save and Go Back button.

NOTE

The user must be linked to the created app to be able to log in.

After configuring Okta, open your API Manager.

Return to the top of this page for more details on configuring an integration in the API Manager. In summary, under Access Control > Integrations, fill in the fields:

  • Name: the name you registered in step 3;
  • Application ID: the name entered as Audience URI (SP Entity ID) in step 4;
  • Metadata type: select URL;
  • Metadata URL: enter the URL you got in step 5.

Click CONNECT.

How happy are you with this page?

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more