Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not login using iOS example project #74

Open
revolutionkpi opened this issue Mar 19, 2019 · 1 comment
Open

Could not login using iOS example project #74

revolutionkpi opened this issue Mar 19, 2019 · 1 comment
Labels

Comments

@revolutionkpi
Copy link

I have run example project from SDKSample. The code in the class IdentityViewController in the block never executes:

_platformManager.accountsPromise.then(^{
// ... code
});

So after success authentication to Microsoft account, _transitionToMainViewController method does not execute.

@NicolasLourenco
Copy link

NicolasLourenco commented Apr 6, 2019

I've the same problem.
To correct that, on the func - (AnyPromise*)signInMsaAsync {
You need to remove the return on MCDConnectedDevicesPlatform: 468:

    MSAAccount* msaAccount = [[MSAAccount alloc] initWithClientId:CLIENT_ID scopeOverrides:@{}];
    
    return [AnyPromise promiseWithAdapterBlock:^(PMKAdapter _Nonnull adapter) {
        [msaAccount signInWithCompletionCallback:adapter];
    }].then(^{
        Account* account = [[Account alloc] initWithMSAAccount:msaAccount platform:self.platform apnsManager:self.apnsManager];
        account.state = AccountRegistrationStateInAppCacheOnly;
        [self.accounts addObject:account];
        [account prepareAccountAsync:self];
    }).then(^{
        [self accountListChanged];
    });
}

https://github.com/Microsoft/project-rome/issues/76 will fix that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants