Skip to content

Commit cc42853

Browse files
author
Martin Noreke
committed
Removing IDP based SSO from the login window.
1 parent e6f52c7 commit cc42853

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

Rally.RestApi.UiForWpf/LoginWindow.xaml.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,13 @@ private Control GetEditor(EditorControlType controlType, string defaultValue = n
439439
ComboBox comboBox = new ComboBox();
440440
comboBox.SelectedValuePath = "Key";
441441
comboBox.DisplayMemberPath = "Value";
442+
443+
if ((!RestApiAuthMgrWpf.AllowIdpBasedSso) &&
444+
(connectionTypes.ContainsKey(ConnectionType.IdpBasedSso)))
445+
{
446+
connectionTypes.Remove(ConnectionType.IdpBasedSso);
447+
}
448+
442449
comboBox.ItemsSource = connectionTypes;
443450
comboBox.SelectionChanged += ConnectionTypeChanged;
444451
control = comboBox;

Rally.RestApi.UiForWpf/RestApiAuthMgrWpf.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ namespace Rally.RestApi.UiForWpf
1717
/// </summary>
1818
public class RestApiAuthMgrWpf : ApiAuthManager
1919
{
20+
/// <summary>
21+
/// Should IDP Based SSO be allowed? This is known to have quite a few JavaScript
22+
/// errors and is therefore defaulted to off.
23+
/// </summary>
24+
public static bool AllowIdpBasedSso { get; set; }
2025
static Dictionary<CustomWpfControlType, Type> customControlTypes = new Dictionary<CustomWpfControlType, Type>();
2126
static ImageSource logoForUi = null;
2227
static ImageSource iconForUi = null;

Rally.RestApi.UiForWpf/SsoWindow.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Collections.Generic;
55
using System.Linq;
66
using System.Net;
7+
using System.Reflection;
78
using System.Text;
89
using System.Threading;
910
using System.Threading.Tasks;

0 commit comments

Comments
 (0)