Hi. I am doing some app in C++ using IWebBrowser2 for authenticating user. The problem is that this browser component does not allow catching redirects so in the end of the either code or token flow the component just shows "cannot display the page <my redirect uri>"
For such stupid components like IWebBrowser2 Google Docs API, for example, allow returning of some special web page (instead of redirecting) with stable format so the app can parse it and get the auth code.
Please advice me if using code flow with no redirect uri is what I need? I mean, if the format of the returned page is stable so I can rely on it and parse it to find the auth code?
This will return a response with an OAuth code embedded in the page content without triggering a redirect.
With regard to your question about page stability, we make no guarantees that the html content that we return will not change. Therefore, we recommend that you do not resort to parsing the response page to retrieve the OAuth token.