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

Broken redirection in case of multiple external agents

Open LZ-Dev1 opened this issue 4 months ago • 1 comments

Describe the bug My app opens login page on browser for user authentication, and if browser also use his own external user agent (some card reader app) instead of username and password then last external user agent will not redirect connection back to app's browser but will create new instance of browser separated from app and redirect there. If browser doesn't use his own external agent but login with username and password then redirection is not broken and result is sent back to my app.

To Reproduce Steps to reproduce the behavior:

  1. Start a OIDExternalUserAgentSession, using for example: OIDAuthState.authState(...)
  2. Browser login page must have additional authentication methods besides the username and password used by external applications.
  3. On login page use another authentication method that use own external user agent
  4. Second external user agent returns result to new instance of browser, insted of external user agent

Expected behavior Redirection goes back to root app

Screenshots /

Environment

  • Device: iPhone 13
  • OS: 18.5
  • Browser: Safari

Additional context /

LZ-Dev1 avatar Aug 04 '25 09:08 LZ-Dev1

Hi, can you please provide repro steps using an example app?

camden-king avatar Aug 05 '25 20:08 camden-king