I want to register a custom redirect_uri (like pw.oauth2:/oauth2redirect) in Google Developer console for a native application (this is the recommended approach for UWP apps). According to https://developers.google.com/identity/protocols/OAuth2InstalledApp#request-parameter-redirect_uri, there must be an option to select "Custom URI scheme (Android, iOS, UWP)" but I only see these options:
- Web application
- Android
- Chrome
- iOS
- Other
Selecting Other does not let me specify redirect_uri.
How am I supposed to register a custom redirect_uri for a UWP app?
If I don't register a redirect_uri, I'm getting redirect_uri_mismatch error during OAuth authorization process.
The ClientID in this github sample https://github.com/googlesamples/oauth-apps-for-windows/tree/master/OAuthUniversalApp works. Looks like for this ClientID the required_uri registered. But how to achieve the same for my own ClientIDs?
This old question discusses something similar but it has never been replied either: Google APIs for UWP not playing nice with custom redirect scheme
EDIT: To clarify. I'm using the Google sample mentioned above (https://github.com/googlesamples/oauth-apps-for-windows/tree/master/OAuthUniversalApp). It works with hardcoded ClientID provided by Google. I just can't get it working with my own ClientID as I see no way to register my own redirect_uri in their Developer Console.