pulsarctl
pulsarctl copied to clipboard
Support load oauth2 configs from auth params
(If this PR fixes a github issue, please add Fixes #<xyz>.)
Fixes #
(or if this PR is one task of a github issue, please add Master Issue: #<xyz> to link to the master issue.)
Master Issue: #
Motivation
Explain here the context, and why you're making that change. What is the problem you're trying to solve.
Modifications
Make context set command able to parse --auth-params directly if it's an oauth2 type params and set oauth2 related configs
Verifying this change
- [x] Make sure that the change passes the CI checks.
(Please pick either of the following options)
-
This change added tests and can be verified as follows:
- *Added unit tests for handling
--auth-paramsin correct format and wrong format`
- *Added unit tests for handling
Documentation
Check the box below.
Need to update docs?
-
[ ]
doc-required(If you need help on updating docs, create a doc issue)
-
[x]
no-need-doc(Please explain why)
-
[ ]
doc(If this PR contains doc changes)