Enhancement - Add option to add a state to an auth code url request#485
Open
tomneurobell wants to merge 2 commits intoAzureAD:mainfrom
Open
Enhancement - Add option to add a state to an auth code url request#485tomneurobell wants to merge 2 commits intoAzureAD:mainfrom
tomneurobell wants to merge 2 commits intoAzureAD:mainfrom
Conversation
|
Author
|
@microsoft-github-policy-service agree |
dcormier
reviewed
Jun 20, 2024
dcormier
added a commit
to dcormier/microsoft-authentication-library-for-go
that referenced
this pull request
Jun 20, 2024
dcormier
added a commit
to dcormier/microsoft-authentication-library-for-go
that referenced
this pull request
Jun 20, 2024
dcormier
added a commit
to dcormier/microsoft-authentication-library-for-go
that referenced
this pull request
Jun 20, 2024
Author
|
@rayluo Can I ask for a status update on this? |
bgavrilMS
approved these changes
Feb 17, 2026
bgavrilMS
reviewed
Feb 17, 2026
| return cca.base.AuthCodeURL(ctx, clientID, redirectURI, scopes, ap) | ||
| } | ||
|
|
||
| // WithState adds a user-generated state to the request. |
Member
There was a problem hiding this comment.
Suggested change
| // WithState adds a user-generated state to the request. | |
| // WithState adds a user-generated state to the URL. |
4gust
approved these changes
Feb 17, 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.




I have added another option to the AuthCodeURL function in the confidential package to allow for conveniently adding a state parameter to the request, this avoids the need to have to modify the URL output manually and improves DevEX.
Resolves issues #227 and #407