Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Fix user code param name in DeviceController #3935

Merged

Conversation

thomaslevesque
Copy link
Contributor

What issue does this PR address?

Fixes #3923

Does this PR introduce a breaking change?

No. The existing code didn't work as expected.

Please check if the PR fulfills these requirements

  • The commit follows our guidelines
  • Unit Tests for the changes have been added (for bug fixes / features)

(There doesn't seem to be a place where this controller was tested, and adding test infrastructure for it would probably be out of scope for this PR)

{
string userCodeParamName = _options.Value.UserInteraction.DeviceVerificationUserCodeParameter;
string userCode = Request.Query[userCodeParamName];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since VerificationUriComplete is generated based on this option, I think it's the only way to properly reflect the configuration

@leastprivilege
Copy link
Member

leastprivilege commented Dec 23, 2019

@scottbrady91 please review

note to self: this must go in both v4 and v3.1.1

@leastprivilege leastprivilege added this to the 3.1.1 milestone Dec 23, 2019
Copy link
Member

@scottbrady91 scottbrady91 left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

@leastprivilege leastprivilege merged commit f575051 into IdentityServer:master Dec 24, 2019
leastprivilege pushed a commit that referenced this pull request Dec 24, 2019
@leastprivilege
Copy link
Member

thanks!

@lock
Copy link

lock bot commented Jan 23, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 23, 2020
@thomaslevesque thomaslevesque deleted the device-flow-usercode branch January 23, 2020 13:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong parameter name for user code in quickstart DeviceController
3 participants