appauth

Navigation is blocked error in Chrome 61+ on Android

天大地大妈咪最大 提交于 2019-12-10 01:02:35
问题 I'm building a login page that, upon submitting and validation of the user credentials, opens up a native mobile application. Up till last week, I had this working cross mobile OS by using a custom scheme URI, something like: function onLoginCallback() { const redirectUri = 'customscheme:/action?param1=val1&param2=val2'; window.location.replace(redirectUri); } The login page is displayed in an IABT, short for In App Browser Tab. However, since the release of version 61 of Chrome, this is

“Navigation is blocked” when redirecting from Chrome Custom Tab to Android app

落花浮王杯 提交于 2019-12-05 14:54:56
问题 I'm 'modernizing' our login widget to use Chrome Custom Tabs as Google will start blocking OAuth requests using Webviews in a few months. The login widget works with our Identity Service, which supports classic 'username&password' login and Social Login, by playing the OAuth2 'Client' in an Authorization Code Flow with Google/Facebook/... So the authorization code from Google is delivered to this Identity Service, which in turn provides our login widget with an access token. The access token

Cross-client Google OAuth: Get auth code on iOS and access token on server

故事扮演 提交于 2019-11-29 10:59:34
I'm trying to set up Google OAuth with my iOS app and Rails web app. I have 2 separate clients (with of course different client IDs, but with the same prefix) set up in the API Console. One for the iOS app, and the other for the web app (which also has a client_secret . I want to use the AppAuth SDK on iOS to get the user's auth code, then send that to my web app, which will then perform the exchange for the access token. First of all, does this sound like a reasonable thing to do, or is it not possible to split the transaction across clients like that? My first try was to just take the auth