chetan552 / flutter-liferay-oauth

A Flutter Liferay OAuth 2.0 Package
MIT License
2 stars 0 forks source link

How to set the redirect Uri? #1

Open akreienbring opened 4 years ago

akreienbring commented 4 years ago

Hi, I'd really like to use your package with Liferay 7.3 but I'm seeing issues when I try.

  1. What do I have to enter as the redirect URL in the OAuth Administration in Liferay? In your article https://www.xtivia.com/flutter-with-liferay-dxp-part-2/ you simply set it to some guest page. As far as I understood it simply has to be a valid URL that is later intercepted by your package. But setting it for example to 'http://[myHost]:[myPort] does not work and ends with a message 'Client Redirect Uri is invalid' from your package. I tried several valid urls, but the result is always the same error.

  2. I see troubles when it comes to starting the webview. E.g. Failed resolution of: Landroid/webkit/TracingController

Are there any additional settings I have to setup? For example like in this other OAuth package? https://pub.dev/packages/oauth2_client

My Android API minSDKVersion is 21 if that is important and my Emulator runs on Api Level 26.

Anyway, all I see when calling await _oauth.login(); is the login screen. After that it breakes and the configured Authorization Screen never shows up. :-(

akreienbring commented 4 years ago

Seems like TracingController was only introduced in API Level 28. https://developer.android.com/reference/android/webkit/TracingController

So it looks as if this package requires Android 9...