Interface ASWebAuthenticationPresentationContextProviding


  • public interface ASWebAuthenticationPresentationContextProviding
    Provides context to target where in an application's UI the authorization view should be shown.
    • Method Detail

      • presentationAnchorForWebAuthenticationSession

        UIWindow presentationAnchorForWebAuthenticationSession​(ASWebAuthenticationSession session)
        Return the ASPresentationAnchor in the closest proximity to where a user interacted with your app to trigger authentication. If starting an ASWebAuthenticationSession on first launch, use the application's main window.
        Parameters:
        session - The session requesting a presentation anchor.
        Returns:
        The ASPresentationAnchor most closely associated with the UI used to trigger authentication.