Skip to content

Commit cd78e81

Browse files
committed
Add default prompt type for Mac test app
1 parent 59e1403 commit cd78e81

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

MSAL/test/app/mac/Base.lproj/Main.storyboard

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@
973973
</customSpacing>
974974
</stackView>
975975
<stackView distribution="fill" orientation="horizontal" alignment="top" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" detachesHiddenViews="YES" translatesAutoresizingMaskIntoConstraints="NO" id="F9V-qA-F54">
976-
<rect key="frame" x="0.0" y="381" width="368" height="27"/>
976+
<rect key="frame" x="0.0" y="381" width="425" height="27"/>
977977
<subviews>
978978
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="cX6-iR-xHs">
979979
<rect key="frame" x="-2" y="11" width="148" height="16"/>
@@ -984,14 +984,15 @@
984984
</textFieldCell>
985985
</textField>
986986
<segmentedControl verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ato-Jb-i4X">
987-
<rect key="frame" x="150" y="4" width="220" height="24"/>
987+
<rect key="frame" x="150" y="4" width="277" height="24"/>
988988
<segmentedCell key="cell" borderStyle="border" alignment="left" segmentDistribution="fill" style="rounded" trackingMode="selectOne" id="9aL-a9-bRn">
989989
<font key="font" metaFont="system"/>
990990
<segments>
991991
<segment label="Select" selected="YES"/>
992992
<segment label="Login" tag="1"/>
993993
<segment label="Consent"/>
994994
<segment label="Create"/>
995+
<segment label="Default"/>
995996
</segments>
996997
</segmentedCell>
997998
</segmentedControl>

MSAL/test/app/mac/MSALAcquireTokenViewController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ - (MSALPromptType)promptType
191191
return MSALPromptTypeConsent;
192192
if ([promptType isEqualToString:@"Create"])
193193
return MSALPromptTypeCreate;
194+
if ([promptType isEqualToString:@"Default"])
195+
return MSALPromptTypeDefault;
194196

195197
@throw @"Do not recognize prompt behavior";
196198
}

0 commit comments

Comments
 (0)