Skip to content

Fix AllowReauth reauthentication#2932

Merged
pierreprinetti merged 1 commit intogophercloud:masterfrom
shiftstack:fix_reauth
Feb 20, 2024
Merged

Fix AllowReauth reauthentication#2932
pierreprinetti merged 1 commit intogophercloud:masterfrom
shiftstack:fix_reauth

Conversation

@pierreprinetti
Copy link
Copy Markdown
Member

@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

@pierreprinetti pierreprinetti self-assigned this Feb 20, 2024
@github-actions github-actions bot added the semver:major Breaking change label Feb 20, 2024
@github-actions github-actions bot added semver:major Breaking change and removed semver:major Breaking change labels Feb 20, 2024
@github-actions github-actions bot added semver:major Breaking change and removed semver:major Breaking change labels Feb 20, 2024
@coveralls
Copy link
Copy Markdown

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
Copy Markdown
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
@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