Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Developer Tokens #125

Closed
sserrata opened this issue Feb 25, 2019 · 0 comments
Closed

Support for Developer Tokens #125

sserrata opened this issue Feb 25, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@sserrata
Copy link
Member

  • Palo Alto Networks Cloud Python SDK version: v1.4.0
  • Python version: 2.7, 2.5+
  • Operating System: any

Description

Until self-service API key/token generation arrives the SDK can be extended to support Developer Tokens generated by API Explorer. These Developer Tokens can be used to request a valid Application Framework access_token which is required for authentication/authorization. The use case is as follows:

  • User activates API Explorer instance in CSP
  • User authorizes API Explorer to access instance
  • User generates a Developer Token for the authorized instance
  • User instantiates a Credentials object with a Developer Token, using either the PAN_DEVELOPER_TOKEN envar or the developer_token constructor argument.
  • Upon recognizing the presence of a Developer Token, the Credentials object uses the Developer Token to authenticate with API Explorer in order to perform a token refresh().
  • API Explorer responds with a valid access_token which is cached by the Credentials object.

Proposal

  • Add support for PAN_DEVELOPER_TOKEN envar and developer_token constructor argument to the Credentials class.
  • Maintain full, backwards compatibility support for client_id, client_secret and refresh_token.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant