This documentation is for WSO2 Identity Server 5.5.0 . View documentation for the latest release.

All docs This doc

Versions Compared


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


  1. Download the samples.
  2. Navigate to the is-samples/oauth-sample-client-authenticator directory.
  3. Build the sample.

    Code Block
    mvn clean install
  4. Copy the org.wso2.carbon.identity.oauth.client.auth.sample-1.0-SNAPSHOT.jar file that is in is-samples/oauth-sample-client-authenticator/target directory to the <IS_HOME>/repository/components/dropins directory.

  5. Run the cURL command given below to get the token.

    Code Block
    curl -k -d "grant_type=password&username=admin&password=admin" -H "Content-Type: application/x-www-form-urlencoded" https://localhost:9443/oauth2/token -i -H "client_id: 5Me6ta8IqnrcTN07t5SZ8OPqS0Qa0gP9suHvLpKZLhVdgtXKWfiybdca" -H "client_secret: jih0VuTzAVa4Mqm3auATbAQgCA0aPIOpiS1637JvSVHn2lDGIOACDNwa"

    The sample response:

    Code Block