Authentication
User Sign In for SSO (Single Sign-On) Configurations
If your configuration supports SSO (Single Sign-On), which can be elicited through Sensing.supportsSSO
, you must sign in a user through the Sensing.presentSignInScreen(presenter:completion:)
method, or alternatively through Sensing.signInWithToken(withToken:completion:)
(NOT IMPLEMENTED YET), passing in a token.
Supporting SSO requires you to add URL scheme to your Info.plist (opened by right-clicking -> Open As -> Source Code):
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string><!-- bundle identifier for your app, e.g. 'com.company.example' --></string>
<key>CFBundleURLSchemes</key>
<array>
<string><!-- the support url scheme, e.g. 'appname' --></string>
</array>
</dict>
</array>
The CFBundleURLName and CFBundleURLSchemes will need to be communicated to the HealthRhythms team to add support for the callbacks to our backend. This step is required for supporting SSO.
The Sensing.isUserSignedIn
boolean will indicate if a user is signed in or not.