This documentation is for WSO2 API Manager 1.9.0. View documentation for the latest release.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Build the class and copy the jar JAR file to <APIM_HOME>/repository/components/lib folder.
  2. Log in to the management console and select Service Bus > Source View in the Main menu.
    Image Added
  3. In the ESB configuration that opens, select an API and navigate to the <Handlers> section. The following line appears as the first handler. This is the current authentication handler used in the API Manager.

    Code Block
    languagehtml/xml
    <handler class="org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler"/>

    Image Added

  4. Replace the above line with the handler that you created to . It will engage your custom handler to the API Manager instance. According to this example, it is as follows:

    Code Block
    languagehtml/xml
    <handler class="org.wso2.carbon.apimgt.gateway.handlers.security.CustomAPIAuthenticationHandler"/>