Summary:
This release removes fallbacks to the external browser whenever ASWebAuthenticationSession isn't able to start. This could be caused by Guided Access mode - which will now fail with an error rather than crashing. In addition, the release adds a new SwiftUI + SPM sample app to make testing changes easier in a modern dev environment.
Changelog:
- Add SwiftUI + Swift Package Manager sample app under
Examples/Example-iOS_Swift-SPM. (#952) - Removed external browser (Safari) fallback from
OIDExternalUserAgentIOS. IfASWebAuthenticationSessionfails to start (e.g., Guided Access is enabled), the authorization flow now fails with an error instead of opening an external browser. (#954) - Added
resumeExternalUserAgentFlowWithURL:error:toOIDExternalUserAgentSessionprotocol, returning errors via an out-parameter instead of throwingNSException. The previous method is deprecated and forwards to the new one. (#955) - Added
OIDErrorCodeURLMismatchandOIDErrorCodeInvalidAuthorizationFlowerror codes. (#955)