You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is what I do to get manual authentication to work (iosupdate branch).
When initializing the simperium instance set the following properties:
self.simperium.authenticationOptional = YES;
This make a cancel button appear.
self.simperium.authenticationEnabled = NO;
This prevents the authentication dialog from popping up.
self.simperium.loginViewControllerClass = [LoginViewController class];
This drops in a custom subclass of SPLoginViewController to overwrite the cancel: message, otherwise you would not get feedback that the user canceled the dialog.
When the user hits a sign "Sign in" button, I set self.simperium.authenticationEnabled = YES;
which causes the login controller to show up.
That's it basically. There is however another caveat. After SPAuthenticationManager did authenticate with the service and the login screen wasn't shown (because credentials where still stored in keychain, I presume), it dismisses whatever modal viewcontroller has been presented on screen. I already sent in a bug report and hope that'll be fixed soon.
The method
- (void)enableManualAuthentication
sounds very useful. But it misses documentation and can't be used because of that.The text was updated successfully, but these errors were encountered: