fix: only allow one authenticate method#858
Open
suqin-haha wants to merge 5 commits intozitadel:mainfrom
Open
Conversation
2 tasks
muir
reviewed
Mar 18, 2026
muir
reviewed
Mar 26, 2026
Collaborator
|
@wim07101993 can you please review this PR? |
wim07101993
reviewed
Apr 2, 2026
Comment on lines
-819
to
-823
| func (r RefreshTokenRequest) Auth(req *http.Request) { | ||
| if r.ClientSecret != "" { | ||
| req.SetBasicAuth(r.ClientID, r.ClientSecret) | ||
| } | ||
| } |
Member
There was a problem hiding this comment.
Removing this method creates a breaking change. Both in changing the public api and removing the implementation of the ClientSecretBasicAuthRequest interface. Wouldn't there be another solution without breaking changes?
Author
There was a problem hiding this comment.
it's a wrong behavior we should mark the release as broken or bug ASAP.
I don't have any idea to fix it without breaking change. Does any one have a good migration idea?
Author
There was a problem hiding this comment.
any update on that issue?
feel free to bring up migration idea.
Or we might need to make it as a break change release?
Member
|
@suqin-haha thank you for the contribution. Could you have a look at my comments? |
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.
according to the RFC 6749 §2.3
The client MUST NOT use more than one authentication method in each request.this PR resolve issue #857
NOTE: it's a breaking change since it removes
ClientSecretBasicAuthRequestinterface andfunc Auth(code.test:
added united test
Definition of Ready
- [ ] PR is linked to the corresponding user story- [ ] All open todos and follow ups are defined in a new ticket and justified- [ ] Deviations from the acceptance criteria and design are agreed with the PO and documented.- [ ] Where possible E2E tests are implemented- [ ] Documentation/examples are up-to-date- [ ] Functionality of the acceptance criteria is checked manually on the dev system.