Refactor the connection:willSendRequest:redirectResponse: method for check the SAML fragment on the URL string from the server