Security

Reply
Contributor I
Posts: 25
Registered: ‎05-27-2014

How to Authenticate to the ClearPass REST API using OAuth2

[ Edited ]

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

 

--
Neil Johnson
Guru Elite
Posts: 8,636
Registered: ‎09-08-2010

Re: How to Authenticate to the ClearPass REST API using OAuth2

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


Tim Cappalli | Aruba Security TME
@timcappalli | timcappalli.me | ACMX #367 / ACCX #480
Contributor I
Posts: 25
Registered: ‎05-27-2014

Re: How to Authenticate to the ClearPass REST API using OAuth2

Thanks Tim! Is this in the documentation anywhere ?

--
Neil Johnson
Search Airheads
Showing results for 
Search instead for 
Did you mean: