question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Revise authentication parameters for connector methods

See original GitHub issue

What 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:closed
  • Created 5 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
jwoehrcommented, Mar 26, 2019

Thank you. I’ll do this.

0reactions
diego-plan9commented, Apr 1, 2019

Fixed via #56

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found