cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1199
Views
5
Helpful
1
Replies

Unauthorized response to pxGrid getSessions API

Maria Gunko
Level 1
Level 1

Hi,  

I've created a pxGrid client account with a certificate authentication as described here. (I don't have username & password)

I'm trying to access the pxGrid API so I've set up the username as the node name and the password as the secret key. 

(As written in the documentation - In the case of ISE, the secret is used as the pasword of HTTP Basic Auth.)
When I make a POST request to: https:// [ise-host1] :8910/pxgrid/mnt/sd/getSessions - I get a 200 response status.
 mnt_getSessions.PNG
 
However, when I make a POST request to: https://[ise-host1]:8910/pxgrid/ise/session/getSessions - I get a 401 response status.
pxgrid_getSessions.PNG
 
If I don't use a password as described below, I get the same result.
Authorization: Basic [nodeName]:[password if password-based authentication, otherwise empty string]
 
What is the authorization credentials I should use? Should they be different?  
What am I missing?
 
Thanks,
Maria :)
1 Accepted Solution

Accepted Solutions

jeppich
Cisco Employee
Cisco Employee

Hey Maria,

 

It is recommended to use the Eclipse development platform or other platform for pxGrid 2.0 development, this way you can download all the pxGrid coding examples directly and work with password-based or certificate based authentication. please see: www.cisco.com/go/pxgridpartner for more information.

 

With that said, there are a number of steps that are required using Chrome postman, please see Testing and Configuration guide for pxGrid 2.0: https://d1nmyq4gcgsfi5.cloudfront.net/fileMedia/ea02ce59-2668-441a-601d-0c6ca59d8bf4/CiscopxGrid20_je.pdf , Illustrating pxGrid Client Flow using Chrome Postman.

 

This includes: Creating the Account, Activating the Account, Performing Services Lookup for topic, Obtaining access secret from node publishing the service and Websocket REST API query script.

 

If you have additional questions, please unicast me directly.

 

Thanks,

John

jeppich@cisco.com

 

 

 

 

View solution in original post

1 Reply 1

jeppich
Cisco Employee
Cisco Employee

Hey Maria,

 

It is recommended to use the Eclipse development platform or other platform for pxGrid 2.0 development, this way you can download all the pxGrid coding examples directly and work with password-based or certificate based authentication. please see: www.cisco.com/go/pxgridpartner for more information.

 

With that said, there are a number of steps that are required using Chrome postman, please see Testing and Configuration guide for pxGrid 2.0: https://d1nmyq4gcgsfi5.cloudfront.net/fileMedia/ea02ce59-2668-441a-601d-0c6ca59d8bf4/CiscopxGrid20_je.pdf , Illustrating pxGrid Client Flow using Chrome Postman.

 

This includes: Creating the Account, Activating the Account, Performing Services Lookup for topic, Obtaining access secret from node publishing the service and Websocket REST API query script.

 

If you have additional questions, please unicast me directly.

 

Thanks,

John

jeppich@cisco.com