top of page

Web/SSO Authentication & SafariViewController for Unity [iOS]

Web Authentication & SafariViewController for Unity

Description

 

Web Authentication & SafariViewController is a native iOS plugin that allows web authentication(ASWebAuthenticationSession) and opening URLs with SFSafariViewController, SSO Authentication from different services.

 

 

• Supports ASWebAuthenticationSession to show web pages.

• SSO Authentication

• Supports web-based authentication. Very important since many companies switch to this way of authentication to improve security.

• Supports SFSafariViewController to show web pages.

 

Usage

 

The plugin is easy to use: To use ASWebAuthenticationSession simply import the package, and call the function with three parameters: the URL to open, scheme, and Action callback with callbackUrl and error parameters. You need the backend to test the web authentication

An example is available with web-based redirection to see the demo drop UnitySafariViewControllerDemo.prefab into the empty scene. Then build an iOS project on your device.

To use SFSafariViewController simply import the package, and call the function with two parameters: the URL to open and Action with a redirect_url parameter. UnitySafariViewController.PresentSafariViewControllerWithURL("https://example.com",(redirect_uri)=> { });

An example is available with web-based redirection to see the demo drop UnitySafariViewControllerDemo.prefab into the empty scene. Then build an iOS project on your device.

Mask group.png
Screen%20Shot%202020-07-30%20at%209.31_e
bottom of page