This documentation is for WSO2 API Manager 1.9.0 View documentation for the latest release.
Page Comparison - Generating Access Tokens with NT LAN Manager - NTLM Grant Type (v.10 vs v.11) - API Manager 1.9.0 - WSO2 Documentation

Versions Compared

Key

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

...

  1. Get a valid consumer key and consumer secret pair. Initially, you generate these keys through the API Store by clicking the Generate button on the My Subscriptions page.
  2. Combine the consumer key and consumer secret keys in the format consumer-key:consumer-secret and encode the combined string using base64 (http://base64encode.org). In order to generate an access token with NTLM, you must have an NTLM token. 

  3. Generate an NTLM token by running the sample provided in the <APIM_HOME>/samples/NTLMGrantClient directory. See the Readme.txt in the same folder for instructions.

  4. Invoke the token API in the following manner to get an access token. 
    The value of the  windows_token in the following command is the NTLM token that you generated in the previous step.

    Code Block
    curl -k -d "grant_type=iwa:ntlm&windows_token=<give the NTLM token you got in step 3>" -H 
    "Authorization: Basic <give the string you got in step2>" -H "Content-Type: application/x-www-form-urlencoded" https://
    ocalhostlocalhost:8243/token