Visitar URL original
config: Support Identity v3 authentication extensions by rm-you · Pull Request #3984 · gophercloud/gophercloud · GitHub
Skip to content

config: Support Identity v3 authentication extensions - #3984

Draft
rm-you wants to merge 2 commits into
gophercloud:mainfrom
rm-you:feat/config-v3-auth
Draft

rm-you wants to merge 2 commits into
gophercloud:mainfrom
rm-you:feat/config-v3-auth

Conversation

@rm-you

@rm-you rm-you commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

This is the independent constructor needed to move Identity v3 client configuration from gophercloud/utils into core Gophercloud.

config.NewProviderClient accepts the concrete gophercloud.AuthOptions type, so callers using Identity v3 authentication extensions cannot combine those extensions with the client setup options in config.

Add NewProviderClientV3, accepting tokens.AuthOptionsBuilder and an explicit identity endpoint, so WebSSO, OAuth2, and other Identity v3 authentication methods can use WithHTTPClient and WithTLSConfig. Factor common provider-client setup into an internal helper without changing NewProviderClient behavior.

Tests:

  • GOTOOLCHAIN=go1.25.0 go test ./openstack/config/...
  • GOTOOLCHAIN=go1.25.0 go test ./...

@github-actions github-actions Bot added edit:config This PR updates config code semver:minor Backwards-compatible change backport-v2 This PR will be backported to v2 labels Aug 25, 2026
@coveralls

coveralls commented Aug 25, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 63.601% (+0.05%) from 63.552% — rm-you:feat/config-v3-auth into gophercloud:main

@rm-you
rm-you marked this pull request as ready for review August 25, 2026 21:37
@rm-you
rm-you force-pushed the feat/config-v3-auth branch from 55fab18 to 7629d95 Compare September 6, 2026 07:51
@rm-you

rm-you commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor Author

@Sharpz7 sorry, this was just a rebase but I guess the way I did it locally it lost your approval :(

Edit: oh, nevermind, at first I thought it cleared it but I guess not :)

rm-you added a commit to rm-you/gophercloud that referenced this pull request Sep 8, 2026

@winiciusallan winiciusallan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Pinging other maintainers to have a quorum before merging it

@mandre @stephenfin

@rm-you
rm-you marked this pull request as draft September 25, 2026 19:47
@rm-you

rm-you commented Sep 25, 2026

Copy link
Copy Markdown
Contributor Author

Converting this to draft for now. #4008 changes config.NewProviderClient to accept its pluggable authenticators, which covers what this PR adds for Identity v3 extensions, so we'll need to wait for #4008 to merge before we know whether this is still needed. Thanks for the reviews so far!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-v2 This PR will be backported to v2 edit:config This PR updates config code semver:minor Backwards-compatible change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants