Skip to content

Commit 1fae389

Browse files
author
Justin Marks
committed
removing netcore support as interactive login isn't supported
1 parent 6bc9efc commit 1fae389

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

ManagedClientConsoleAppSample/ManagedClientConsoleAppSample.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
44
<TargetFrameworks>net452</TargetFrameworks>
5-
<TargetFrameworks>netcoreapp2.0</TargetFrameworks>
65
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
76
<RootNamespace>ManagedClientConsoleAppSample</RootNamespace>
87
<AssemblyName>ManagedClientConsoleAppSample</AssemblyName>

ManagedClientConsoleAppSample/Program.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,10 @@ public static void Main(string[] args)
2323
AuthenticationContext ctx = GetAuthenticationContext(null);
2424
AuthenticationResult result = null;
2525

26-
IPlatformParameters promptBehavior = new PlatformParameters();
27-
#if NET452
28-
promptBehavior = new PlatformParameters(PromptBehavior.Always);
29-
#endif
26+
IPlatformParameters promptBehavior = new PlatformParameters(PromptBehavior.Always);
3027

3128
try
3229
{
33-
3430
//PromptBehavior.RefreshSession will enforce an authn prompt every time. NOTE: Auto will take your windows login state if possible
3531
result = ctx.AcquireTokenAsync(VSTSResourceId, clientId, new Uri(replyUri), promptBehavior).Result;
3632
Console.WriteLine("Token expires on: " + result.ExpiresOn);

0 commit comments

Comments
 (0)