Revise authentication parameters for connector methods
See original GitHub issueWhat is the expected behavior?
Currently, most of the methods of IBMQConnector
that interact with and endpoint accept the credentials information (hub
, group
, user_id
, etc) as parameters, and perform a similar set of operations at the beginning of the function:
if access_token:
self.req.credential.set_token(access_token)
if user_id:
self.req.credential.set_user_id(user_id)
if not self.check_credentials():
raise CredentialsError('credentials invalid')
However, the credentials information is already present in self.config
, which makes the parameters and some checks redundant (and actually, the parameters are unused by the rest of the codebase). It seems a good candidate for simplification, by just removing the parameters and fetching the needed information from self.config
directly.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Authentication with a data source - Power Query
How to select credentials for a connector in Power Query to authenticate a connection with a data source, how to select the authentication...
Read more >Managing connectors - Bizagi Cloud Platform
You can change values for authentication parameters. To do so, select the required connector in the Connector list. Web_MC_047.
Read more >Creating an Application By Using the Generic REST Connector
Authentication parameters are used by the target system to authenticate an application. The set of parameters for which you must specify values depends...
Read more >7.1 Connector/Python Connection Arguments
Authentication with MySQL typically uses a username and password . When the database argument is given, the current database is set to the...
Read more >Authentication of the Connector to the directory - IBM
The AD Change Detection Connector supports Anonymous, Simple and SASL authentication. Anonymous: If this authentication method is set, it means that the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you. I’ll do this.
Fixed via #56