Broken redirection in case of multiple external agents
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:
- Start a OIDExternalUserAgentSession, using for example: OIDAuthState.authState(...)
- Browser login page must have additional authentication methods besides the username and password used by external applications.
- On login page use another authentication method that use own external user agent
- 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 /
Hi, can you please provide repro steps using an example app?