Skip to content

Problem with redirect url. #304

@spipatpunlop

Description

@spipatpunlop

Issue

I can login successfully but I don't know what should my return url would be.
After I sign in I got this message from the server

There is an error determining which application you are signing into. Return to your application and try again.

I set:

manifestPlaceholders = [
            appAuthRedirectScheme: 'com.trylogin:/callback'
]

From terminal:

BUILD SUCCESSFUL in 7s
43 actionable tasks: 4 executed, 39 up-to-date
info Running C:\Users\<User_name>\AppData\Local\Android\Sdk/platform-tools/adb -s emulator-5554 reverse tcp:8081 tcp:8081
info Starting the app on emulator-5554 (C:\Users\<User_name>\AppData\Local\Android\Sdk/platform-tools/adb -s emulator-5554 shell am start -n com.trylogin/com.trylogin.MainActivity)...
Starting: Intent { cmp=com.trylogin/.MainActivity }

My config:

const config = {
  issuer: '<url_issuer>',
  clientId: '<client_id>',
  clientSecret: '<client_secret>',
  redirectUrl: 'com.trylogin:/callback', // is this redirectUrl correct?
  scopes: ['openid', 'member'],
};

I use com.trylogin:/callback as redirect url. Is that correct?
If not, what will the redirect url woudl be?


Environment

  • Your Identity Provider: IdentityServer 3
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • Are you using Expo, e.g. ExpoKit?
    • No
    • Yes, I've not ejected
    • Yes, but I have ejected to ExpoKit
    • Yes, but I have ejected to vanilla React Native

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions