openid / openid/AppAuth-iOS

BigSur, Catalyst: failed authentication via [OIDAuthState authStateByPresentingAuthorizationRequest:presentingViewController:callback:]

Open
#597 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

OIDAuthState fails authorization on BigSur, Catalyst.

[OIDAuthState authStateByPresentingAuthorizationRequest:presentingViewController:callback:] fails with the following error:
Error Domain=org.openid.appauth.general Code=-3 "(null)" UserInfo={NSUnderlyingError=0x6000001b9d40 {Error Domain=com.apple.AuthenticationServices.WebAuthenticationSession Code=1 "(null)"}}

Expected behavior
[OIDAuthState authStateByPresentingAuthorizationRequest:presentingViewController:callback:] should work on Big Sur, Catalyst.

Desktop (please complete the following information):

  • MacOS Big Sur 11.0 Beta (20A5384c)
  • Browser chrome, Safari

Additional context
The is NOT reproducible on iOS and Mac OS 10.15.6

The issue can be reproduced with AppAuth example "Example-iOS_ObjC" if use custom clientID and use configuration for Google:

  • (OIDServiceConfiguration *)configurationForGoogle {
    NSURL *authorizationEndpoint =
    [NSURL URLWithString:@"https://accounts.google.com/o/oauth2/v2/auth"];
    NSURL *tokenEndpoint =
    [NSURL URLWithString:@"https://www.googleapis.com/oauth2/v4/token"];

    OIDServiceConfiguration *configuration =
    [[OIDServiceConfiguration alloc] initWithAuthorizationEndpoint:authorizationEndpoint
    tokenEndpoint:tokenEndpoint];
    return configuration;
    }

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 by reproducing the failure with the Example-iOS_ObjC example, the custom Google configuration, and OIDAuthState authStateByPresentingAuthorizationRequest:presentingViewController:callback: on Big Sur Catalyst. Compare behavior with iOS and macOS 10.15.6; done means authorization succeeds on Big Sur Catalyst without regressing those working platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
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.