Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ private async void LoadData()
}
else if (provider.State == ProviderState.SignedIn)
{
IsLoading = true;

try
{
// https://github.com/microsoftgraph/microsoft-graph-toolkit/blob/master/src/components/mgt-login/mgt-login.ts#L139
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

69 changes: 0 additions & 69 deletions Microsoft.Toolkit.Graph.Controls/Providers/MockProviderBehavior.cs

This file was deleted.

56 changes: 0 additions & 56 deletions Microsoft.Toolkit.Graph.Controls/Providers/QuickCreate.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<Project Sdk="MSBuild.Sdk.Extras">

<PropertyGroup>
<TargetFramework>uap10.0.17763</TargetFramework>
<Title>Windows Community Toolkit Msal Graph Provider</Title>
<PackageId>Microsoft.Toolkit.Graph.Providers.Msal</PackageId>
<Description>
This library provides... It is part of the Windows Community Toolkit.

Classes:
- MsalProvider:
- MsalConfig:
</Description>
<PackageTags>UWP Toolkit Windows Controls MSAL Microsoft Graph AadLogin Login</PackageTags>
<SignAssembly>false</SignAssembly>
<GenerateLibraryLayout>true</GenerateLibraryLayout>
<LangVersion>8.0</LangVersion>
<Configurations>Debug;Release;CI</Configurations>
<Platforms>AnyCPU;ARM;ARM64;x64;x86</Platforms>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Microsoft.Toolkit.Graph.Providers\Microsoft.Toolkit.Graph.Providers.csproj" />
<ProjectReference Include="..\Microsoft.Toolkit.Graph\Microsoft.Toolkit.Graph.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Graph.Beta" Version="0.37.0-preview" />
<PackageReference Include="Microsoft.Graph.Auth" Version="1.0.0-preview.6" />
</ItemGroup>

<Import Project="$(MSBuildSDKExtrasTargets)" Condition="Exists('$(MSBuildSDKExtrasTargets)')" />
<!-- https://weblogs.asp.net/rweigelt/disable-warnings-in-generated-c-files-of-uwp-app -->
<Target Name="PragmaWarningDisablePrefixer" AfterTargets="MarkupCompilePass2">
<ItemGroup>
<GeneratedCSFiles Include="**\*.g.cs;**\*.g.i.cs" />
</ItemGroup>
<Message Text="CSFiles: @(GeneratedCSFiles->'&quot;%(Identity)&quot;')" />
<Exec Command="for %%f in (@(GeneratedCSFiles->'&quot;%(Identity)&quot;')) do echo #pragma warning disable &gt; %%f.temp &amp;&amp; type %%f &gt;&gt; %%f.temp &amp;&amp; move /y %%f.temp %%f &gt; NUL" />
</Target>
</Project>
40 changes: 40 additions & 0 deletions Microsoft.Toolkit.Graph.Providers.Msal/MsalConfig.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace Microsoft.Toolkit.Graph.Providers.Msal
{
/// <summary>
/// Configuration values for initializing the MsalProvider.
/// </summary>
public class MsalConfig : IGraphConfig
{
static MsalConfig()
{
Graph.RegisterConfig(typeof(MsalConfig), (c) => MsalProvider.Create(c as MsalConfig));
}

/// <summary>
/// Gets or sets the Client ID (the unique application (client) ID assigned to your app by Azure AD when the app was registered).
/// </summary>
/// <remarks>
/// For details about how to register an app and get a client ID,
/// see the <a href="https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app">Register an app quick start</a>.
/// </remarks>
public string ClientId { get; set; }

/// <summary>
/// Gets or sets the redirect URI (the URI the identity provider will send the security tokens back to).
/// </summary>
public string RedirectUri { get; set; }

/// <summary>
/// Gets or sets the list of Scopes (permissions) to request on initial login.
/// </summary>
/// <remarks>
/// This list can be modified by controls which require specific scopes to function.
/// This will aid in requesting all scopes required by controls used before login is initiated, if using the LoginButton.
/// </remarks>
public ScopeSet Scopes { get; set; }
}
}
Loading