Developer

 View Only
  • 1.  OAuth Central credentials when using Greenlake?

    Posted Sep 25, 2025 01:58 PM

    Hello everyone

    I'm using pycentral to do some automation in Aruba Central. Managed to get pycentral working with and refreshing a manually-generated token that I generated through the web ui, but I'm stalled when it comes to generating one through the OAuth api. The docs say that I need username and password for my Networking Central account, but I access Central through Greenlake. I tried using my Greenlake username & password, but no dice. This fails while using pycentral and curl command given here: OAuth APIs for Access Token

    Which credentials do I need to use?

    thx



    -------------------------------------------


  • 2.  RE: OAuth Central credentials when using Greenlake?

    Posted Sep 25, 2025 08:19 PM

    Hi @Allen Unrau! Are you attempting to automate classic or new Central?  For new Central you'll want to follow this guide here : https://developer.arubanetworks.com/new-central/docs/generating-and-managing-access-tokens 

    this is where you create an API client with a client id and client secret for your Central instance for using the new Central APIs - is this what you're trying to do?



    ------------------------------
    Ti Chiapuzio-Wong (they/them)
    HPE Aruba Networking
    ------------------------------



  • 3.  RE: OAuth Central credentials when using Greenlake?

    Posted Sep 26, 2025 10:27 AM

    Hi Tiffany - thanks for replying

    I'm using the pycentral library and generating access tokens from within classic Aruba Central. That works and the pycentral library refreshes the tokens when necessary. The OAuth docs (linked above) ask for:

    • Client id and client secret from API Gateway by creating an application.
    • Username and Password for the user in your HPE Aruba Networking Central account.

    Client id and client secret I can get from Central, that's OK, but which username and password do I use? I don't log directly into Aruba Central, I log into Greenlake first, then into Central from there. I don't specify another userid and password when I start up Central. I tried using my Greenlake credentials for OAuth, but that didn't work.

    -------------------------------------------