Skip to content

OAuth2Manager.RequestAuthWithParamsAsync ignoring request for no code challenge #5657

@erwinwolff

Description

@erwinwolff

Describe the bug

OAuth2Manager.RequestAuthWithParamsAsync ignores parameters

Image

So the OAuth2Manager always sends the code challenge

Steps to reproduce the bug

In OAuth2Manager.cpp this check is somehow ignored
if ((m_params->CodeChallengeMethod() != CodeChallengeMethodKind::None) && m_params->CodeChallenge().empty()) { m_params->set_code_challenge(winrt::hstring{ random_base64urlencoded_string(32) }); }

Expected behavior

Code challenge is not send to identity server

Screenshots

Image

NuGet package version

Windows App SDK 1.8 Experimental 4: 1.8.250702007-experimental4

Packaging type

Unpackaged

Windows version

Windows 11 version 24H2 LTSC (26100, June Update)

IDE

Visual Studio 2022

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions