You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the method: private RallyRestApi.AuthenticationResult AuthenticateWithConnectionInfoBaseMethod( ConnectionInfo connectionInfo, bool allowSSO, out string exceptionMessage)
The very end condition is incorrect, it correctly invokes the PerformSsoAuthentication which returns ture when successful (and the state has been changed to Authorized. However it then is caught by the final else which overwrites it with "NotAuthorised" - I suggest changing it to something like:
if (ex is WebException && ((WebException) ex).Status == WebExceptionStatus.ConnectFailure) throw; else if (allowSSO) { if (!this.httpService.PerformSsoAuthentication()) { this.Logout(); throw; } } else { this.AuthenticationState = RallyRestApi.AuthenticationResult.NotAuthorized; exceptionMessage = ex.Message; }
The text was updated successfully, but these errors were encountered:
In the method:
private RallyRestApi.AuthenticationResult AuthenticateWithConnectionInfoBaseMethod( ConnectionInfo connectionInfo, bool allowSSO, out string exceptionMessage)
The very end condition is incorrect, it correctly invokes the PerformSsoAuthentication which returns ture when successful (and the state has been changed to Authorized. However it then is caught by the final else which overwrites it with "NotAuthorised" - I suggest changing it to something like:
if (ex is WebException && ((WebException) ex).Status == WebExceptionStatus.ConnectFailure) throw; else if (allowSSO) { if (!this.httpService.PerformSsoAuthentication()) { this.Logout(); throw; } } else { this.AuthenticationState = RallyRestApi.AuthenticationResult.NotAuthorized; exceptionMessage = ex.Message; }
The text was updated successfully, but these errors were encountered: