openid / openid/AppAuth-iOS

Browser Redirect in Mac Catalyst

Open
#507 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted platform-bug
Dominant language
Objective-C
Stars
2k
Forks
867
Avg merge
4d 48m
Merged PRs (30d)
1

Description

Describe the bug
When authenticating in a Mac Catalyst app, the user is switched to Safari instead of redirecting back to the app. The authentication completes successfully and the callback completes successfully. However, the user flow switches to Safari. This is confusing to the user.

To Reproduce
Steps to reproduce the behavior:

  1. Download the AppAuth Example-iOS_ObjC code. Enable configure for Google OpenID provider, enable Mac Catalyst and build for My Mac.
  2. Launch and tap "Authorize". The app opens a confirmation.
    3, Confirm the authentication, the app opens the Google authentication web view window.
  3. Complete the authentication process for Google
  4. The user is switched to Safari after authenticating. No new tab is opened.
  5. However, the authentication completes successfully and the callback is called.

Expected behavior
The user is switched back to the app.

Desktop (please complete the following information):

  • OS: MacOS Catalina 10.15.2
  • Browser : Safari
  • Version : 1.3.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the AppAuth Example-iOS_ObjC reproduction configured for Google OpenID and Mac Catalyst, then trace the browser redirect and callback handling. Done means authentication still completes, but the user returns to the app instead of being left in Safari.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, macos, objective-c
Domain
authentication, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.