Solving problem with authentication in XE7