'WebAuthenticationBroker return UserCancel

I try authorize and get authorization code in Microsoft using WebAuthenticationBroker, but it just return UserCancel.

        var Result = await WebAuthenticationBroker
                           .AuthenticateAsync(WebAuthenticationOptions.None,new Uri(url));

URL template: https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id={0}&response_type=id_token+code&redirect_uri={1}&response_mode=form_post&scope={2}&state=12345&nonce=678910";

When I try authorize in Google, I get same error.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source