MaikuB/flutter_appauth

auth flow doesnt intrpret the result when using https schema

c0nevski opened this issue · 2 comments

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

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

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.