Skip to content

Commit 15078f4

Browse files
Comment out Apple option
Comment out the Apple provider as it causes the application to fail to start if the values aren't set and/or the key file does not exist.
1 parent 8ee2f76 commit 15078f4

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

samples/Mvc.Client/Startup.cs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,6 @@ public void ConfigureServices(IServiceCollection services)
3939
options.LogoutPath = "/signout";
4040
})
4141

42-
.AddApple(options =>
43-
{
44-
options.ClientId = Configuration["AppleClientId"];
45-
options.KeyId = Configuration["AppleKeyId"];
46-
options.TeamId = Configuration["AppleTeamId"];
47-
options.UsePrivateKey(
48-
(keyId) => HostingEnvironment.ContentRootFileProvider.GetFileInfo($"AuthKey_{keyId}.p8"));
49-
})
50-
5142
.AddGoogle(options =>
5243
{
5344
options.ClientId = "560027070069-37ldt4kfuohhu3m495hk2j4pjp92d382.apps.googleusercontent.com";
@@ -67,6 +58,17 @@ public void ConfigureServices(IServiceCollection services)
6758
options.Scope.Add("user:email");
6859
})
6960

61+
/*
62+
.AddApple(options =>
63+
{
64+
options.ClientId = Configuration["AppleClientId"];
65+
options.KeyId = Configuration["AppleKeyId"];
66+
options.TeamId = Configuration["AppleTeamId"];
67+
options.UsePrivateKey(
68+
(keyId) => HostingEnvironment.ContentRootFileProvider.GetFileInfo($"AuthKey_{keyId}.p8"));
69+
})
70+
*/
71+
7072
.AddDropbox(options =>
7173
{
7274
options.ClientId = "jpk24g2uxfxe939";

0 commit comments

Comments
 (0)