Beispiel #1
0
        public virtual void TryAssociateAccountWithExternalAccount(Customer customer)
        {
            var parameters = ExternalAuthorizerHelper.RetrieveParametersFromRoundTrip(true);

            if (parameters != null && _externalAuthenticationService.GetUserByExternalAuthenticationParameters(parameters) == null)
            {
                _externalAuthenticationService.AssociateExternalAccountWithUser(customer, parameters);
            }
        }