Add a way to set auth provider on rancher2_custom_user_token#2108
Open
disaster37 wants to merge 4 commits into
Open
Add a way to set auth provider on rancher2_custom_user_token#2108disaster37 wants to merge 4 commits into
disaster37 wants to merge 4 commits into
Conversation
Collaborator
|
This is reverting #1997. While the name is misleading, the v3 API is older. The v1 API is the first version of a new API, while the v3 is the third version of the older API. |
Collaborator
|
Since it reverts a change for the latest release I don't think it can be accepted as is. |
Author
|
Ok, I have go back to use v1 api first. |
This was referenced Mar 17, 2026
This was referenced May 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #2102
Description
Add field
auth_provideron resourcerancher2_custom_user_tokento generate token for ActiveDirectory user or others. If not set, default islocal.I change DoUserLogin function to use v3 API first, instead to continue to use v1. On my Rancher (2.13.1), the v1 api is still here, so it never use the new v3 API. It seems the v3 api support more auth provider like
pingorcustom_oidc.Testing
I have compiled the binaire and put it on
~/.terraform.d/plugins/terraform.local/local/rancher2/0.1.1/linux_amd64/terraform-provider-rancher2.You need to have Rancher with ActiveDirectory Auth provider setted (or other)
Then:
To finish:
Not a breaking change.