Skip to main content

Version: 3.2.16.5

Log in to API7 Dashboard with SSO

Single Sign-On (SSO) allows users to log in once and access multiple systems without re-entering credentials. It improves efficiency, enhances user experience, and strengthens security by eliminating the need for multiple passwords.

In API7 Enterprise, you can use multiple login options simultaneously. It is possible to create users within API7 while also importing them from other existing systems.

Architecture

Take LDAP as an example:

Architecture of LDAP

  1. User Login Request: Users enter their username and password when logging into API7 Enterprise.
  2. LDAP Verification: API7 Enterprise transfers the credentials provided by the user to the LDAP server for verification.
  3. Authentication: The LDAP server verifies whether the user's credentials match the user information stored in the LDAP directory.
  4. Authorization: If verification is successful, the LDAP server returns authorization information to API7 Enterprise, and the system authorizes the user to access corresponding resources based on this information.
  5. Accessing Resources: Users access API7 Enterprise with the verified identity without having to re-enter credentials.

Integrate with SSO

API7 Enterprise supports Single Sign-On with the following implementations. Integrating API7 Enterprise with other user systems enables you to log your existing users into API7 Enterprise without signing up for a new API7 account.

  1. Select Organization from the top navigation bar, then choose Settings.
  2. Click Add Login Option.
  3. Fill in the form:
  • Name: the unique login name. The name should be identifiable for users. For example, if you configure the name to be Employee Account, you will see Login with Employee Account option in the Dashboard login.
  • Provider: choose LDAP.
  • Host: the LDAP host domain. For example, ldap.example.com.
  • Port: For example, 1563.
  • Base Distinguished Name: For example, oc=users,dc=org,dc=example.
  • Bind Distinguished Name: the LDAP Bind Distinguished Name (DN) used to perform LDAP search for the user. This LDAP Bind DN should have permissions to search for the user being authenticated. For example, cn=admin,dc=org,dc=example.
  • Bind Password: the LDAP bind password used to authenticate with the LDAP server.
  • Identifier: the attribute used to identify LDAP users. For example, cn.
  • Attributes Mapping: map API7 internal fields to related LDAP attributes to seamlessly integrate and synchronize data.
  1. Click Add.

Use Cases

Login with SSO

Once you have configured the Login Options, external users will be able to directly log in to the API7 Dashboard without the need for signing up.

  1. Visit the API7 Enterprise at https://localhost:7443.
  2. Choose from the login option name, for example, Login with Employee Account.
  3. Enter your username and password.
  4. Click Login.

Delete Imported Users

If you delete a user with SSO login options in Users, it only means that the user will lose all their roles. However, they can still log in to the API7 Dashboard as a new user. To completely block their access to the API7 Dashboard, you must delete them from the original system.

Sync User Data from IdP

SCIM (System for Cross-domain Identity Management) is a protocol that can be used to synchronize user and group information from the original Identity Provider (IdP) to API7 Enterprise. This can eliminate the need to manually manage user and group information in multiple systems, which can save time and reduce the risk of errors.

With SCIM Provisioning, API7 Enterprise automatically synchronizes user data whenever a new user is registered or deleted in your IdP.

  1. Select Organization from the top navigation bar, then choose Settings.
  2. Click Enable of SCIM Provisioning.
  3. Copy the API7 SCIM Endpoint URL and SCIM Token.
  4. Configure Your IdP (if it supports SCIM):
  • Log in to your IdP administration console.
  • Locate the SCIM configuration settings (these may vary depending on your IdP).
  • Paste the copied API7 SCIM Endpoint URL and SCIM Token into the appropriate fields.
  • Save your configuration changes and configure them on your IdP side (make sure your IdP supports SCIM protocol).

Assign Roles for Imported Users

Update Roles Manually

See how to update user roles..

Set Role Mapping

Imported users are automatically assigned roles based on relevant attributes from their original system (title, position, department, etc.). These roles are synchronized and refreshed upon login for seamless access. Role mapping of a login option can involve multiple rules that work together to determine user access.

note

Role mapping takes precedence over manual role assignments. Any manual adjustments to a user's roles will be overwritten upon the next user login when role mapping is active.

  1. Select Organization from the top navigation bar, then choose Settings.
  2. Choose the login option by click its name.
  3. Click Enable of Role Mapping.
  4. Fill in the form:
  • Internal Role: For example, Super Admin.
  • Role Attribute: For example, Position.
  • Operation: For example, =.
  • Role Value: For example, Team Lead.
  1. Click Enable.

Now all users with Position = Team Lead from IdP will gain the Super Admin role.

Note that this role mapping is dynamic. If a user's job title changes in the identity provider, from Team Lead to Team member for example, their role will be automatically updated the next time they log in to API7 Enterprise.

Set Permission Boundary Mapping

Imported users are automatically assigned permission boundaries based on relevant attributes from their original system (title, position, department, etc.). These permission boundaries are synchronized and refreshed upon login for seamless access. Permission boundary mapping of a login option can involve multiple rules that work together to determine user access.

note

Permission boundary mapping takes precedence over manual permission boundary modification. Any manual adjustments to a user's permission boundaries will be overwritten upon the next user login when permission boundary mapping is active.

  1. Select Organization from the top navigation bar, then choose Settings.
  2. Choose the login option by click its name.
  3. Click Enable of Permission Boundary Mapping.
  4. Fill in the form:
  • Permission Policy: For example, Prohibit License Operation.
  • Permission Boundary Attribute: For example, Position.
  • Operation: For example, =.
  • Permission Boundary Value: For example, Team Member.
  1. Click Enable.

Now all users with Position = Team Member from IdP will be restricted by Prohibit License Operation policy, even if they were assigned Super Admin role.

Note that this permission boundary mapping is dynamic. If a user's job title changes in the identity provider, from Team Member to Team Lead for example, their permission boundary will be automatically updated the next time they log in to API7 Enterprise.

Delete a Login Option

danger

Deleting a login option will result in the removal of all users associated with it.

  1. Select Organization from the top navigation bar, then choose Users.
  2. Check if there are any users still using this login option. If yes, notify them first.
  3. Select Organization from the top navigation bar, then choose Settings.
  4. Click Delete of the target login option.
  5. Double confirm.

Additional Resources


API7.ai Logo

API Management for Modern Architectures with Edge, API Gateway, Kubernetes, and Service Mesh.

Product

API7 Cloud

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN PTE. LTD 2019 – 2024. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the

Apache Software Foundation