Authentication Providers
Authentication providers are pieces of JavaScript code that authenticate API user login credentials (username/password) and returns a set of roles.
calac41
API users access
CA Live API Creator
by way of normal HTTP. CA Live API Creator
controls API user access to API endpoints using the authentication provider that you specify for your API. Authentication providers are pieces of JavaScript code that authenticate API user login credentials (username/password) and returns a set of roles.In this article:
2
Options for Managing API User Access to APIs
You can manage API user access to your API by specifying
one
of the following authentication providers for your API:- The built-in authentication provider thatThis authentication provider is most appropriate for development and is specified for your API by default. The built-in authentication provider defines theCA Live API Creatorincludes.@authenticationresource endpoint, the admin service, and API user access to the REST API endpoints.For more information about how to manage API users when your API is using this authentication provider, see Manage API Users using the Built-in Authentication Provider.
- (Advanced users) A custom authentication provider.You can authorize API users using existing security data by defining a custom authentication provider. You can define a custom authentication provider or a custom LDAP authentication provider.For more information:
- About how to define a custom authentication provider using JavaScript, see Define Custom Authentication Providers using JavaScript.
- About how to define a custom LDAP authentication provider, see Define a Custom LDAP Authentication Provider using JavaScript.
Authentication Provider Samples
CA Live API Creator
includes the following authentication provider samples for Stormpath, Microsoft Azure Active Directory (Azure AD), SQL Server database, and LDAP.StormpathAuthProvider
The StormpathAuthProvider JavaScript authentication provider uses Stormpath for authentication, roles, and user data. It integrates with API Creator and with Data Explorer.
For more information about this authentication provider, see GitHub.
SimpleLDAPAuthProvider
The SimpleLDAPAuthProvider JavaScript authentication provider uses a public LDAP.
For more information:
- About this authentication provider, see GitHub.
- About how to define a custom LDAP authentication provider starting with this sample, see Define a Custom LDAP Authentication Provider using JavaScript.
AdminAuthProvider
The Business to Business (B2B) sample provides the
AdminAuthProvider
custom authentication provider.For more information about is authentication provider, see Explore B2B.