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

Fix AllowReauth reauthentication #2932

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

pierreprinetti
Copy link
Contributor

@pierreprinetti pierreprinetti commented Feb 20, 2024

Due to an error in implementing the addition of context.Context, the default reauth function caught the context passed when generating the ProviderClient, which could be long canceled when the reauthentication takes place.

This is a breaking change: this patch changes the signature of the reauthentication function in the ProviderClient to accept a context.

Fixes #2931

@coveralls
Copy link

coveralls commented Feb 20, 2024

Coverage Status

coverage: 77.247% (+0.002%) from 77.245%
when pulling ecb891e on shiftstack:fix_reauth
into 5714c53 on gophercloud:master.

@github-actions github-actions bot added semver:major Breaking change and removed semver:major Breaking change labels Feb 20, 2024
Due to an error in implementing the addition of `context.Context`, the
reauth function catched the context passed when generating the
ProviderClient, which could be long canceled when the reauthentication
takes place.

This is a breaking change: this patch changes the signature of the
reauthentication function in the ProviderClient to accept a context.
@github-actions github-actions bot added semver:major Breaking change and removed semver:major Breaking change labels Feb 20, 2024
@EmilienM
Copy link
Contributor

@pierreprinetti I'll let you merge it when you think it's ready. Thanks for the fix!

@pierreprinetti pierreprinetti merged commit faaee35 into gophercloud:master Feb 20, 2024
17 checks passed
@pierreprinetti pierreprinetti deleted the fix_reauth branch February 20, 2024 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:major Breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v2: Reauthenticate failed with context cancelled
3 participants