Exemplo n.º 1
0
        public async Task RemoveLoginAsync(TUser user, string loginProvider, string providerKey, CancellationToken cancellationToken)
        {
            ThrowIfDisposed();
            cancellationToken.ThrowIfCancellationRequested();
            log.LogDebug("RemoveLoginAsync");

            if (user == null)
            {
                throw new ArgumentNullException("user");
            }

            var siteGuid = siteSettings.Id;

            if (multiTenantOptions.UseRelatedSitesMode)
            {
                siteGuid = multiTenantOptions.RelatedSiteId;
            }

            await commands.DeleteLogin(
                siteGuid,
                user.Id,
                loginProvider,
                providerKey,
                cancellationToken
                );
        }