AppAuth-Android icon indicating copy to clipboard operation
AppAuth-Android copied to clipboard

applicationId with underscore (wrtmobile.wrt_mobile) no worked.

Open postflow opened this issue 3 years ago • 1 comments

Configuration

  • Version: 0.X.Y
  • Integration: Flutter(Flutter plugin https://github.com/MaikuB/flutter_appauth a wrapper for native AppAuth SDKs (https://appauth.io))
  • Identity provider: (Identity Server 4 on Net Core)

Description

Hi. My "applicationId" in build.gradle is 'wrtmobile.wrt_mobile' and you see applicationId contains '_' simbol. I use AUTH0_REDIRECT_URI as: AUTH0_REDIRECT_URI = 'wrtmobile.wrt_mobile://login-callback'

and manifestPlaceholders as:

manifestPlaceholders = [
           'appAuthRedirectScheme': 'wrtmobile.wrt_mobile'
   ]

An last step authorization when chrome custom tabs retuns result to my flutter app i get error what page not found (404 error). For test i create new flutter project with "applicationId" in build.gradle is 'wrtmobile.wrt.mobile' (without underscore in name) and authorization is WORKED!

My application is published in google play therefore I cannot change applicationId. How to fix so that my application to work with applicationId wrtmobile.wrt_mobile (which underscore)?

postflow avatar Dec 07 '21 09:12 postflow

From our README:

Using the package name of your app is quite common but it's not always possible if it contains illegal characters for URI schemes (like underscores) or if you already have another handler for that scheme - so just use something else.

Put another way, your package name and your redirect scheme don't need to be the same.

agologan avatar Dec 07 '21 19:12 agologan