MaikuB / flutter_appauth

A Flutter wrapper for AppAuth iOS and Android SDKs
269 stars 238 forks source link

auth flow doesnt intrpret the result when using https schema #410

Open c0nevski opened 1 year ago

c0nevski commented 1 year ago

I’ve tried using https schema instead of custom schema with site association for the auth0 flow, and everything works until the end, where the callback doesnt close the web window with the result. Any example of setting this up with https schema & site association? Thanks.

MaikuB commented 1 year ago

No examples for this. You'd need to look up online elsewhere those. As this is a wrapper for native SDKs then chances there are already examples of this. You need to also look up what each native platform requires for this to work as this typically that you upload a file to a site hosted to your domain as a way for the identity provider to validate that you own the domain for the redirect to work

artkoenig commented 10 months ago

Same here on Android. My changes to the AndroidManifest:

<activity
     android:name="net.openid.appauth.RedirectUriReceiverActivity"
     android:exported="true"
     tools:node="replace">
     <intent-filter>
         <action android:name="android.intent.action.VIEW"/>
         <category android:name="android.intent.category.DEFAULT"/>
         <category android:name="android.intent.category.BROWSABLE"/>
         <data android:scheme="https" android:host="<myhost>"/>
     </intent-filter>
 </activity>

The assetlinks.json is also present and is working: The callback url opens the app, if entered in the browser manually.