401 error Configuring the Aruba Central plugin
search cancel

401 error Configuring the Aruba Central plugin

book

Article ID: 370849

calendar_today

Updated On:

Products

DX NetOps CA Virtual Network Assurance

Issue/Introduction

When configuring the Aruba Central plugin, 

Environment

DX Netops VNA all supported versions

Cause

All the tokens must be correct.:

    "ARUBA_CLIENT_ID": "xxxxxx"
    "ARUBA_CLIENT_SECRET": "xxxxxx",
    "ARUBA_ACCESS_TOKEN": "xxxxxx",
    "ARUBA_REFRESH_TOKEN" : "xxxxxx",

Resolution

Make sure all the tokens are correct and the access/refresh tokens have not expired.


Additional Information

Note the access token expires within 2 hours, the refresh token expires in 14 days.

Curl can be used to verify the refresh token as follows:

curl --location --request POST 'https://<aruba-url>/oauth2/token?client_id=<ARUBA_CLIENT_ID>&grant_type=refresh_token&client_secret=<ARUBA_CLIENT_SECRET>refresh_token=<ARUBA_REFRESH_TOKEN>' --header 'Content-Type: application/json'

If you need to use a proxy add;

--proxy '<http|https>://username:password@proxynameorip:proxyport' 

Use the apropriate protocol and other details