feat(msal): Added support for MSAL in SampleApps of all platforms
This commit is contained in:
Родитель
eb651fa33d
Коммит
7418302c49
|
@ -51,5 +51,5 @@
|
|||
<PackageReference Update="Xamarin.AndroidX.RecyclerView" Version="1.1.0" />
|
||||
<PackageReference Update="Xamarin.AndroidX.Lifecycle.LiveData" Version="2.2.0" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -5,6 +5,7 @@ using Android.Views;
|
|||
using Java.Interop;
|
||||
using Windows.UI.Core;
|
||||
using Windows.UI.ViewManagement;
|
||||
using Microsoft.Identity.Client;
|
||||
|
||||
namespace SamplesApp.Droid
|
||||
{
|
||||
|
@ -45,6 +46,27 @@ namespace SamplesApp.Droid
|
|||
activity.Window.ClearFlags(WindowManagerFlags.Fullscreen);
|
||||
}
|
||||
}
|
||||
protected override void OnActivityResult(int requestCode, Result resultCode, Android.Content.Intent data)
|
||||
{
|
||||
base.OnActivityResult(requestCode, resultCode, data);
|
||||
AuthenticationContinuationHelper.SetAuthenticationContinuationEventArgs(requestCode, resultCode, data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[Activity]
|
||||
[IntentFilter(
|
||||
new[] {
|
||||
Android.Content.Intent.ActionView
|
||||
},
|
||||
Categories = new[] {
|
||||
Android.Content.Intent.CategoryDefault,
|
||||
Android.Content.Intent.CategoryBrowsable
|
||||
},
|
||||
DataScheme = "msauth")]
|
||||
public class MsalActivity : BrowserTabActivity
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -77,6 +77,12 @@
|
|||
<Reference Include="System.Numerics.Vectors" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Graph">
|
||||
<Version>3.6.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.Identity.Client">
|
||||
<Version>4.14.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Newtonsoft.Json">
|
||||
<Version>12.0.3</Version>
|
||||
</PackageReference>
|
||||
|
@ -84,6 +90,12 @@
|
|||
<Version>1.32.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Uno.UniversalImageLoader" Version="1.9.32" />
|
||||
<PackageReference Include="Xamarin.AndroidX.AppCompat.AppCompatResources">
|
||||
<Version>1.1.0.1</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Xamarin.AndroidX.Browser">
|
||||
<Version>1.2.0.1</Version>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="MSTest.TestFramework" Version="2.1.1" />
|
||||
|
@ -96,6 +108,10 @@
|
|||
<Project>{f9277925-fc11-4a97-8ca1-b4a33e726f55}</Project>
|
||||
<Name>Uno.UI.Lottie</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\AddIns\Uno.UI.MSAL\Uno.UI.MSAL.csproj">
|
||||
<Project>{2569663D-293A-4A1D-BB84-AA8C7B4B7F92}</Project>
|
||||
<Name>Uno.UI.MSAL</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Uno.Foundation\Uno.Foundation.csproj">
|
||||
<Project>{528AE586-5DF3-4DAD-AA5C-F12F4D5E0605}</Project>
|
||||
<Name>Uno.Foundation</Name>
|
||||
|
|
|
@ -124,6 +124,9 @@
|
|||
<EmbeddedResource Include="Properties\SamplesApp.UWP.Design.rd.xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Identity.Client">
|
||||
<Version>4.14.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
|
||||
<Version>6.2.8</Version>
|
||||
</PackageReference>
|
||||
|
|
|
@ -89,6 +89,12 @@
|
|||
<UseDotNetNativeToolchain>false</UseDotNetNativeToolchain>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Graph">
|
||||
<Version>3.6.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.Identity.Client">
|
||||
<Version>4.14.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
|
||||
<Version>6.1.7</Version>
|
||||
</PackageReference>
|
||||
|
@ -125,6 +131,10 @@
|
|||
<Content Include="Properties\Default.rd.xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\AddIns\Uno.UI.MSAL\Uno.UI.MSAL.csproj">
|
||||
<Project>{2569663d-293a-4a1d-bb84-aa8c7b4b7f92}</Project>
|
||||
<Name>Uno.UI.MSAL</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Uno.UI.RuntimeTests\Uno.UI.RuntimeTests.csproj">
|
||||
<Project>{028f3ee0-d51b-469a-a72c-c272585dcd40}</Project>
|
||||
<Name>Uno.UI.RuntimeTests</Name>
|
||||
|
|
|
@ -58,6 +58,8 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Graph" Version="3.6.0" />
|
||||
<PackageReference Include="Microsoft.Identity.Client" Version="4.14.0" />
|
||||
<PackageReference Include="Microsoft.TypeScript.Compiler" />
|
||||
<PackageReference Include="Microsoft.TypeScript.MSBuild" />
|
||||
<PackageReference Include="MSTest.TestFramework" Version="2.1.1" />
|
||||
|
@ -75,6 +77,7 @@
|
|||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\AddIns\Uno.UI.Lottie\Uno.UI.Lottie.csproj" />
|
||||
<ProjectReference Include="..\..\AddIns\Uno.UI.MSAL\Uno.UI.MSAL.csproj" />
|
||||
<ProjectReference Include="..\..\Uno.Foundation\Uno.Foundation.csproj" />
|
||||
<ProjectReference Include="..\..\Uno.UI.RemoteControl\Uno.UI.RemoteControl.csproj" />
|
||||
<ProjectReference Include="..\..\Uno.UI.RuntimeTests\Uno.UI.RuntimeTests.csproj" />
|
||||
|
|
|
@ -121,6 +121,12 @@
|
|||
<Reference Include="System.Numerics.Vectors" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Graph">
|
||||
<Version>3.6.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.Identity.Client">
|
||||
<Version>4.14.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Newtonsoft.Json">
|
||||
<Version>12.0.3</Version>
|
||||
</PackageReference>
|
||||
|
@ -143,6 +149,10 @@
|
|||
<Project>{f9277925-fc11-4a97-8ca1-b4a33e726f55}</Project>
|
||||
<Name>Uno.UI.Lottie</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\AddIns\Uno.UI.MSAL\Uno.UI.MSAL.csproj">
|
||||
<Project>{2569663D-293A-4A1D-BB84-AA8C7B4B7F92}</Project>
|
||||
<Name>Uno.UI.MSAL</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Uno.UI.RemoteControl\Uno.UI.RemoteControl.csproj">
|
||||
<Project>{80798130-cb7e-4968-b4f6-554cc0fc8feb}</Project>
|
||||
<Name>Uno.UI.HotReload</Name>
|
||||
|
@ -177,4 +187,4 @@
|
|||
<Import Project="..\SamplesApp.UnitTests.Shared\SamplesApp.UnitTests.Shared.projitems" Label="Shared" />
|
||||
<Import Project="..\UITests.Shared\UITests.Shared.projitems" Label="Shared" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
|
||||
</Project>
|
||||
</Project>
|
|
@ -3,6 +3,7 @@
|
|||
"path": "Uno.UI.sln",
|
||||
"projects": [
|
||||
"AddIns\\Uno.UI.Lottie\\Uno.UI.Lottie.csproj",
|
||||
"AddIns\\Uno.UI.MSAL\\Uno.UI.MSAL.csproj",
|
||||
"SamplesApp\\SamplesApp.Droid\\SamplesApp.Droid.csproj",
|
||||
"SamplesApp\\SamplesApp.Shared\\SamplesApp.Shared.shproj",
|
||||
"SamplesApp\\SamplesApp.UITests\\SamplesApp.UITests.csproj",
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"path": "Uno.UI.sln",
|
||||
"projects": [
|
||||
"AddIns\\Uno.UI.Lottie\\Uno.UI.Lottie.csproj",
|
||||
"AddIns\\Uno.UI.MSAL\\Uno.UI.MSAL.csproj",
|
||||
"SamplesApp\\SamplesApp.Droid\\SamplesApp.Droid.csproj",
|
||||
"SamplesApp\\SamplesApp.Shared\\SamplesApp.Shared.shproj",
|
||||
"SamplesApp\\SamplesApp.UITests.Generator\\Uno.Samples.UITest.Generator.csproj",
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"path": "Uno.UI.sln",
|
||||
"projects": [
|
||||
"AddIns\\Uno.UI.Lottie\\Uno.UI.Lottie.csproj",
|
||||
"AddIns\\Uno.UI.MSAL\\Uno.UI.MSAL.csproj",
|
||||
"SamplesApp\\Benchmarks.Shared\\SamplesApp.Benchmarks.shproj",
|
||||
"SamplesApp\\SamplesApp.Shared\\SamplesApp.Shared.shproj",
|
||||
"SamplesApp\\SamplesApp.UITests\\SamplesApp.UITests.csproj",
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"path": "Uno.UI.sln",
|
||||
"projects": [
|
||||
"AddIns\\Uno.UI.Lottie\\Uno.UI.Lottie.csproj",
|
||||
"AddIns\\Uno.UI.MSAL\\Uno.UI.MSAL.csproj",
|
||||
"SamplesApp\\Benchmarks.Shared\\SamplesApp.Benchmarks.shproj",
|
||||
"SamplesApp\\SamplesApp.Shared\\SamplesApp.Shared.shproj",
|
||||
"SamplesApp\\SamplesApp.UITests.Generator\\Uno.Samples.UITest.Generator.csproj",
|
||||
|
@ -28,4 +29,4 @@
|
|||
"Uno.UWP\\Uno.csproj"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
"solution": {
|
||||
"path": "Uno.UI.sln",
|
||||
"projects": [
|
||||
"AddIns\\Uno.UI.MSAL\\Uno.UI.MSAL.csproj",
|
||||
"SamplesApp\\Benchmarks.Shared\\SamplesApp.Benchmarks.shproj",
|
||||
"SamplesApp\\SamplesApp.Shared\\SamplesApp.Shared.shproj",
|
||||
"SamplesApp\\SamplesApp.UWP\\SamplesApp.UWP.csproj",
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"path": "Uno.UI.sln",
|
||||
"projects": [
|
||||
"AddIns\\Uno.UI.Lottie\\Uno.UI.Lottie.csproj",
|
||||
"AddIns\\Uno.UI.MSAL\\Uno.UI.MSAL.csproj",
|
||||
"SamplesApp\\SamplesApp.Shared\\SamplesApp.Shared.shproj",
|
||||
"SamplesApp\\SamplesApp.UITests\\SamplesApp.UITests.csproj",
|
||||
"SamplesApp\\SamplesApp.UnitTests.Shared\\SamplesApp.UnitTests.Shared.shproj",
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"path": "Uno.UI.sln",
|
||||
"projects": [
|
||||
"AddIns\\Uno.UI.Lottie\\Uno.UI.Lottie.csproj",
|
||||
"AddIns\\Uno.UI.MSAL\\Uno.UI.MSAL.csproj",
|
||||
"SamplesApp\\SamplesApp.Shared\\SamplesApp.Shared.shproj",
|
||||
"SamplesApp\\SamplesApp.UITests\\SamplesApp.UITests.csproj",
|
||||
"SamplesApp\\SamplesApp.UnitTests.Shared\\SamplesApp.UnitTests.Shared.shproj",
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"path": "Uno.UI.sln",
|
||||
"projects": [
|
||||
"AddIns\\Uno.UI.Lottie\\Uno.UI.Lottie.csproj",
|
||||
"AddIns\\Uno.UI.MSAL\\Uno.UI.MSAL.csproj",
|
||||
"SamplesApp\\SamplesApp.Shared\\SamplesApp.Shared.shproj",
|
||||
"SamplesApp\\SamplesApp.UITests\\SamplesApp.UITests.csproj",
|
||||
"SamplesApp\\SamplesApp.UnitTests.Shared\\SamplesApp.UnitTests.Shared.shproj",
|
||||
|
@ -23,4 +24,4 @@
|
|||
"Uno.UWP\\Uno.csproj"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче