現在、WinRT Metro Javascript アプリに Google API OAuth を実装するのに苦労しています。問題は、Metro アプリで動作する有効な redirect_uri を提供できないことです。インストールされたアプリの urn:ietf:wg:oauth:2.0:oob URL が機能しておらず、リダイレクトを処理できる Javascript アプリで HttpListener をホストする方法が想像できません。
助言がありますか?
現在、WinRT Metro Javascript アプリに Google API OAuth を実装するのに苦労しています。問題は、Metro アプリで動作する有効な redirect_uri を提供できないことです。インストールされたアプリの urn:ietf:wg:oauth:2.0:oob URL が機能しておらず、リダイレクトを処理できる Javascript アプリで HttpListener をホストする方法が想像できません。
助言がありますか?
START URI = https://accounts.google.com/o/oauth2/auth?client_id= Ur Client ID &redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&scope=https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/userinfo.profile
End URI =https://accounts.google.com/o/oauth2/approval?
Windows.Security.Authentication.Web.WebAuthenticationBroker.authenticateAsync(Windows.Security.Authentication.Web.WebAuthenticationOptions.useTitle, startURI, endURI)
.then(function (result) {
}
上記は私のコードの一部ですので、ここに貼り付けます..これを試してみてください。