question

coar-7240 avatar image
0 Likes"
coar-7240 asked

Override OAuthRedirectActivity in your application manifest. Android OAuth2 notification.

Trying to display some search results data in my android app following eBay's Android directions: GitHub - eBay/ebay-oauth-android-client: eBay OAuth Android Client library

My MainActivity.kt:

private val oAuthService = OAuthService (this)     

  override fun onCreate (savedInstanceState: Bundle?) {
        super.onCreate (savedInstanceState)
ApiSessionConfiguration.initialize (
            apiEnvironment = ApiEnvironment.PRODUCTION,
            apiConfiguration = ApiConfiguration (
                "<my_client_id>",
                "https://auth.ebay.com/oauth2/authorize?client_id=<my_client_id>&response_type=code&redirect_uri=<my_redirect_uri>",
                "https://api.ebay.com/oauth/api_scope"
            )
        )
oAuthService.performUserAuthorization()
}

My AndroidManifest.xml

<activity
    android:name=".OAuthRedirectActivity"
    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="auth.ebay.com"
            android:pathPattern="/oauth2/*" />
    </intent-filter>
</activity>

I'm being notified with the uplodaded image below.

Trying different values always seem to end with the same notification. Can someone help me understand what i'm doing wrong?

oauth2appandroid
1661679599980.png (39.5 KiB)
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.