-
Notifications
You must be signed in to change notification settings - Fork 60
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
Prevent double authentication while using openqaoa-azure #249
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solution looks good.
Additional Comments:
- The proposed solution only accounts for the case where the user has tried to run
check_connection
on the same device before the device is being passed into theBackend
It does not account for any other case, for example, cases where there are incorrect credentials or names. In those cases, thecheck_connection
method is run again for the same device.
Leaving this comment here so we have reference. Approving changes.
@TerraVenil You will need to update this PR with the latest version of |
Hi @shahidee44. Thank you for your comments to PR. Please take a look my comment here #233 (comment), eventually if you have any issues with authentication after timeout (default value is 5 mins) authenticator will throw an error that will stop any further processing. That means it wouldn't execute |
Thats a good point on Authentication Errors. The intention of the Device object is to catch Also, it seems like I'm made a mistake in my initial comment, the new amendment only authenticates iff the Device object has not tried to authenticate before. The booleans It is then more appropriate to note that:
This is an important point to note since in some fringe case where the user authenticates, initializes the Device and runs The main point here would be that we need to let users know that the Device object would need to be recreated or |
Description
This PR is for solving issue #233.
Checklist
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
By running tests locally for openqaoa-azure and openqaoa-core.