Provide a seamless user experience across multiple products with the single sign-on feature.
Single sign-on (SSO) is defined as login once, logged in all apps. If you have multiple mobile apps or websites that use the same Authgear project. You can configure your apps to turn on the SSO feature, so the end-users only have to enter their authentication credentials once.
If you are building cookie-based websites with the same root domain (e.g.
app2.example.com), you can skip this section. Sessions are shared among
*.example.comautomatically, see detail.
If you are building token-based websites or mobile apps, you can enable the SSO feature via the SDK.
When SSO-enabled is ON, the end-user will need to enter their authentication credentials when they login to the first app. Later on, when they login to the second app, they will see a continue screen so that they can log in with just a click, without authenticating themselves again.
When the end-user logout the SSO-enabled app, all the apps will be logged out at the same time.
You can turn on this feature when you configure the SDK by setting the is sso enabled option to
final authgear = Authgear(
var authgearOptions = new AuthgearOptions
ClientId = CLIENT_ID,
AuthgearEndpoint = ENDPOINT,
IsSsoEnabled = true,
var authgear = new AuthgearSdk(GetActivity().ApplicationContext, authgearOptions);
var authgear = new AuthgearSdk(UIKit.UIApplication.SharedApplication, authgearOptions);
true // isSsoEnabled = true