Authenticate TeamSpace Users

Authenticate TeamSpace Users
lac53
As a system administrator, you can configure how
Layer7 Live API Creator
 authenticates TeamSpace users (API developers) by using a custom 
admin
 JavaScript authentication provider. Custom admin JavaScript authentication provider are custom JavaScript authentication providers that you can specify as the authentication provider for the Layer7 Live API Creator project API (Admin API).
After they are authenticated, TeamSpace users can perform API Creator functions such as creating APIs and creating managed databases.
Use the following process to define an admin JavaScript authentication provider:
Verify the Prerequisites
Before you create your custom admin JavaScript authentication provider, ensure that you complete the following prerequisites:
  • You understand security in
    Layer7 Live API Creator
    , in particular, how security operates at the admin and application levels in 
    Layer7 Live API Creator
    , and the architecture of 
    Layer7 Live API Creator
    .
    For more information:
  • You have added your custom admin JavaScript authentication provider to your TeamSpace and you have defined the code for it.
    For more information about how to create a custom admin JavaScript authentication provider, see Authenticate API Users using a JavaScript Authentication Provider.
Specify your Admin Authentication Provider as the Authentication Provider for the Admin API
  1. From the Authentication Providers page, click 
    APIs
    .
    The APIs page appears.
  2. Open the Admin API.
    The API Properties page appears.
  3. Select your custom admin JavaScript authentication provider as the authentication provider for the Admin API from the
    Authentication provider
    drop-down, and then save your changes.
    For more information about the other fields on this tab, see API Properties.
Your custom admin JavaScript authentication provider is specified as the authentication provider for the Admin API.
Test your Admin Authentication Provider
Warning!
 To prevent the loss of access to API Server that can occur if your authentication provider fails, test your custom admin authentication provider on a test API.
Follow these steps:
  1. Log out of API Creator and log back in as one of the API users that are hard-coded into the sample 
    AdminAuthProvider.js
     authentication provider, such as the
    demo
    user, the system administrator (
    sa
    ) user, or the
    admin
     user.
    The Business to Business (B2B) sample includes the sample 
    AdminAuthProvider.js
     authentication provider.
    For more information about this authentication provider, see B2B API Sample.
    The APIs page appears.
  2. Verify that you can see APIs, that you can create an API, and that you can test your REST API.
  3. From the APIs page, click the 
    Auth Providers
     tab.
  4. Verify that your custom admin JavaScript authentication provider is listed as an authentication provider.
You have tested your custom admin JavaScript authentication provider.