Skip to content

AppAuth 2.1.0

Latest

Choose a tag to compare

@w-goog w-goog released this 12 Jun 17:43
a7caeda

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. If ASWebAuthenticationSession fails 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: to OIDExternalUserAgentSession protocol, returning errors via an out-parameter instead of throwing NSException. The previous method is deprecated and forwards to the new one. (#955)
  • Added OIDErrorCodeURLMismatch and OIDErrorCodeInvalidAuthorizationFlow error codes. (#955)