Skip to content

feat: allow users to supply custom token_endpoint for token creation - #90

Open
ssiva wants to merge 3 commits into
aruba:v2.0a24from
ssiva:v2(pre-release)
Open

feat: allow users to supply custom token_endpoint for token creation#90
ssiva wants to merge 3 commits into
aruba:v2.0a24from
ssiva:v2(pre-release)

Conversation

@ssiva

@ssiva ssiva commented Jul 28, 2026

Copy link
Copy Markdown

In certain Aruba Central deployments, likes of OnPrem and internal QA clusters, token creation fails as it reaches the wrong token endpoint.

Allow users to supply a custom token_endpoint to override the default OAuth token endpoint used for token creation and refresh.

ssiva added 2 commits July 24, 2026 11:58
In certain Aruba Central deployments, likes of OnPrem and internal
QA clusters, token creation fails as it reaches the wrong token
endpoint.

Allow users to supply a custom `token_url` to override the default
OAuth token endpoint used for token creation and refresh.

Signed-off-by: Siva Shanmugam <164997+ssiva@users.noreply.github.com>

@KarthikSKumar98 KarthikSKumar98 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the override. Before we merge, please update:

  • pycentral/utils/base_utils.py: rename token_url to token_endpoint.
  • docs/getting-started/authentication.md: document the new field, include an example, and state that it is used for automatic renewal too. Also include that this relevant only for Central On-Prem (non-MSP accounts) instances only.

Renamed the user-facing `token_url` key to `token_endpoint`.
Updated the documentation for the `token_endpoint` field with
examples in the authentication.md

Signed-off-by: Siva Shanmugam <164997+ssiva@users.noreply.github.com>
@ssiva

ssiva commented Aug 3, 2026

Copy link
Copy Markdown
Author

@KarthikSKumar98 - Thanks, renamed the field to token_endpoint and updated the documentation as requested.

@ssiva ssiva closed this Aug 3, 2026
@ssiva ssiva reopened this Aug 3, 2026
@ssiva ssiva changed the title feat: allow users to supply custom token_url for token creation feat: allow users to supply custom token_endpoing for token creation Aug 4, 2026
@ssiva ssiva changed the title feat: allow users to supply custom token_endpoing for token creation feat: allow users to supply custom token_endpoint for token creation Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants