openid / openid/AppAuth-iOS

OIDAuthState.authState fails to show login browser on iOS 13

Open
#447 27 comments 3 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

HI Team,

I am working on iOS 13 support for my framework. My solution environment is following:

  • AppAuth 1.2.0
  • Xcode 11 GM seed

I have tested in 1.1.0 also.

While launching web browser from my component, the alert is getting disappeared and getting below error:

Printing description of authorizationError:

Error Domain=org.openid.appauth.general Code=-3 "(null)" UserInfo={NSUnderlyingError=0x600002816b50 {Error Domain=com.apple.AuthenticationServices.WebAuthenticationSession Code=2 "Cannot start ASWebAuthenticationSession without providing presentation context. Set presentationContextProvider before calling -start." UserInfo={NSDebugDescription=Cannot start ASWebAuthenticationSession without providing presentation context. Set presentationContextProvider before calling -start.}}}

Please help me which verison to take. I saw one more issue was raised like this but it was in iOS 13 beta branch.

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

Reproduce the failure on iOS 13 with AppAuth 1.2.0 and 1.1.0, starting from OIDAuthState.authState and the reported ASWebAuthenticationSession error. Trace the browser-launch path to identify the missing presentation context; done means the login browser appears without the Code -3 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c
Domain
authentication, mobile
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.