BigSur, Catalyst: failed authentication via [OIDAuthState authStateByPresentingAuthorizationRequest:presentingViewController:callback:]
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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