dotMorten / WinUIEx

WinUI Extensions
https://dotmorten.github.io/WinUIEx
MIT License
602 stars 38 forks source link

Using WebAuthenticator on Google shows "response_type is missing" error #39

Closed felinepunch closed 2 years ago

felinepunch commented 2 years ago

Using WebAuthenticator on Google shows "response_type is missing" error.

My codes is shown below.

const string authorizationURI = "https://accounts.google.com/o/oauth2/v2/auth";
const string callBackURI = "xxxxxx://loggedin";
WebAuthenticatorResult result = await WinUIEx.WebAuthenticator.AuthenticateAsync(new Uri(authorizationURI), new Uri(callBackURI));

Error message in web browser(MS Edge version 101.0.1210.32 64 bit)

Authorization Error Error 400: invalid_request Required parameter is missing: response_type

dotMorten commented 2 years ago

Your authorizationURI appears to missing a bunch of parameters.