Follow this steps and get fix. Determine the API specifications and requirements, such as API endpoint, authentication method, and response format.
Create an API client in ClearPass to connect to the external API. This includes specifying the API endpoint, authentication method, and response format.
Configure an authentication source in ClearPass using the API client. This involves selecting the API client, setting the authentication method, and specifying the attributes to be retrieved from the API.
Test the authentication source by sending test authentication requests and verifying that the correct response is received from the API.
Integrate the authentication source into a ClearPass policy, to control access to network resources based on the authentication response from the API.
Monitor the authentication source and update the API client and authentication source configuration as needed to ensure that the authentication source continues to work properly
.
Original Message:
Sent: Jan 31, 2023 07:37 PM
From: mwfolso
Subject: How to use an external api to create an authentication source in ClearPass
Hi:
One the suggestion of cjoseph I am moving my question here.
From ClearPass I need to be able to use something like a request module to query an API on an external system so I can hand that system a cert along with the user name and one time password for an yes/no authentication response.
Doing this in Perl or Python would involve a simple POST request and based on the outcome of the authentication request a sting is returned for processing.
When I go to Configuration -> Authentication -> Sources in ClearPass and try to add a new source I see there is a type "HTTP" but don't think that I can both do a POST from there with an attached cert then process the response. Is something like this possible in ClearPass?
Am I missing something?
Thanks!
Mike