Skip to content

Commit 6ee9653

Browse files
committed
#10 Remove the oboslete Google OpenId auth components.
1 parent 43a9bb5 commit 6ee9653

15 files changed

+3
-1117
lines changed
Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,16 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4-
// OpenID is obsolete
5-
#pragma warning disable 618
6-
74
using System;
8-
using Microsoft.Owin.Security;
95
using Microsoft.Owin.Security.Google;
106

117
namespace Owin
128
{
139
/// <summary>
14-
/// Extension methods for using <see cref="GoogleAuthenticationMiddleware"/>
10+
/// Extension methods for using <see cref="GoogleOAuth2AuthenticationMiddleware"/>
1511
/// </summary>
1612
public static class GoogleAuthenticationExtensions
1713
{
18-
/// <summary>
19-
/// Authenticate users using Google OpenId
20-
/// </summary>
21-
/// <param name="app">The <see cref="IAppBuilder"/> passed to the configuration method</param>
22-
/// <param name="options">Middleware configuration options</param>
23-
/// <returns>The updated <see cref="IAppBuilder"/></returns>
24-
[Obsolete("Google is discontinuing support for the OpenId. Use OAuth2 instead.", error: false)]
25-
public static IAppBuilder UseGoogleAuthentication(this IAppBuilder app, GoogleAuthenticationOptions options)
26-
{
27-
if (app == null)
28-
{
29-
throw new ArgumentNullException("app");
30-
}
31-
if (options == null)
32-
{
33-
throw new ArgumentNullException("options");
34-
}
35-
36-
app.Use(typeof(GoogleAuthenticationMiddleware), app, options);
37-
return app;
38-
}
39-
40-
/// <summary>
41-
/// Authenticate users using Google OpenId
42-
/// </summary>
43-
/// <param name="app">The <see cref="IAppBuilder"/> passed to the configuration method</param>
44-
/// <returns>The updated <see cref="IAppBuilder"/></returns>
45-
[Obsolete("Google is discontinuing support for the OpenId. Use OAuth2 instead.", error: false)]
46-
public static IAppBuilder UseGoogleAuthentication(
47-
this IAppBuilder app)
48-
{
49-
return UseGoogleAuthentication(
50-
app,
51-
new GoogleAuthenticationOptions());
52-
}
53-
5414
/// <summary>
5515
/// Authenticate users using Google OAuth 2.0
5616
/// </summary>
@@ -97,5 +57,4 @@ public static IAppBuilder UseGoogleAuthentication(
9757
});
9858
}
9959
}
100-
}
101-
#pragma warning restore 618
60+
}

src/Microsoft.Owin.Security.Google/GoogleAuthenticationHandler.cs

Lines changed: 0 additions & 360 deletions
This file was deleted.

src/Microsoft.Owin.Security.Google/GoogleAuthenticationMiddleware.cs

Lines changed: 0 additions & 92 deletions
This file was deleted.

src/Microsoft.Owin.Security.Google/GoogleAuthenticationOptions.cs

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)