Security

last person joined: 9 hours ago 

Forum to discuss Enterprise security using HPE Aruba Networking NAC solutions (ClearPass), Introspect, VIA, 360 Security Exchange, Extensions, and Policy Enforcement Firewall (PEF).
Expand all | Collapse all

How to Authenticate to the ClearPass REST API using OAuth2

This thread has been viewed 6 times
  • 1.  How to Authenticate to the ClearPass REST API using OAuth2

    Posted Jul 11, 2016 01:47 PM

    How do I authenticate to my Clear Pass server so I can use the new REST API (6.6) using OAuth2:

    I created a OAuth service using the template as explained in the CP User Guide

     

    I tried to submit the following JSON via  the API Explorer to

    https://clrpass-e-1-m.its.uiowa.edu:443/api/oauth

     

    {
    "grant_type": "password",
    "client_id": "",
    "client_secret": "",
    "username": "<USERNAME>",
    "password": "<PASSWORD>"
    }

     

    But I get the following:

    {
      "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",
      "title": "invalid_client",
      "status": 400,
      "detail": "This client is invalid or must authenticate using a client secret"
    

     

    It seems like I need a Client_id and Client_Secret. Where do I find these?

     

    Thanks.

    -Neil

     



  • 2.  RE: How to Authenticate to the ClearPass REST API using OAuth2
    Best Answer

    EMPLOYEE
    Posted Jul 11, 2016 01:53 PM

    Guest > Administration > API Services > API Clients > Select Client ID > Generate Access Token



  • 3.  RE: How to Authenticate to the ClearPass REST API using OAuth2

    Posted Jul 11, 2016 01:59 PM

    Thanks Tim! Is this in the documentation anywhere ?