Skip to content

Commit 75d6300

Browse files
committed
React to recent naming changes in aspnet/Security
aspnet/Security@e8090a3
1 parent 7fc09fb commit 75d6300

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

generators/app/templates/AuthenticationDefaults.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,32 @@ public static class <%= name %>AuthenticationDefaults {
1818
public const string AuthenticationScheme = "<%= name %>";
1919

2020
/// <summary>
21-
/// Default value for <see cref="OAuthAuthenticationOptions.Caption"/>.
21+
/// Default value for <see cref="OAuthOptions.Caption"/>.
2222
/// </summary>
2323
public const string Caption = "<%= name %>";
2424

2525
/// <summary>
26-
/// Default value for <see cref="OAuthAuthenticationOptions.ClaimsIssuer"/>.
26+
/// Default value for <see cref="OAuthOptions.ClaimsIssuer"/>.
2727
/// </summary>
2828
public const string Issuer = "<%= name %>";
2929

3030
/// <summary>
31-
/// Default value for <see cref="OAuthAuthenticationOptions.CallbackPath"/>.
31+
/// Default value for <see cref="OAuthOptions.CallbackPath"/>.
3232
/// </summary>
3333
public const string CallbackPath = "/signin-<%= name.toLowerCase() %>";
3434

3535
/// <summary>
36-
/// Default value for <see cref="OAuthAuthenticationOptions.AuthorizationEndpoint"/>.
36+
/// Default value for <see cref="OAuthOptions.AuthorizationEndpoint"/>.
3737
/// </summary>
3838
public const string AuthorizationEndpoint = "<%= authorizationendpoint %>";
3939

4040
/// <summary>
41-
/// Default value for <see cref="OAuthAuthenticationOptions.TokenEndpoint"/>.
41+
/// Default value for <see cref="OAuthOptions.TokenEndpoint"/>.
4242
/// </summary>
4343
public const string TokenEndpoint = "<%= tokenendpoint %>";
4444

4545
/// <summary>
46-
/// Default value for <see cref="OAuthAuthenticationOptions.UserInformationEndpoint"/>.
46+
/// Default value for <see cref="OAuthOptions.UserInformationEndpoint"/>.
4747
/// </summary>
4848
public const string UserInformationEndpoint = "<%= userinformationendpoint %>";
4949
}

generators/app/templates/AuthenticationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
using Newtonsoft.Json.Linq;
1717

1818
namespace AspNet.Security.OAuth.<%= name %> {
19-
public class <%= name %>AuthenticationHandler : OAuthAuthenticationHandler<<%= name %>AuthenticationOptions> {
19+
public class <%= name %>AuthenticationHandler : OAuthHandler<<%= name %>AuthenticationOptions> {
2020
public <%= name %>AuthenticationHandler([NotNull] HttpClient client)
2121
: base(client) {
2222
}

generators/app/templates/AuthenticationMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
using Microsoft.Framework.WebEncoders;
1515

1616
namespace AspNet.Security.OAuth.<%= name %> {
17-
public class <%= name %>AuthenticationMiddleware : OAuthAuthenticationMiddleware<<%= name %>AuthenticationOptions> {
17+
public class <%= name %>AuthenticationMiddleware : OAuthMiddleware<<%= name %>AuthenticationOptions> {
1818
public <%= name %>AuthenticationMiddleware(
1919
[NotNull] RequestDelegate next,
2020
[NotNull] IDataProtectionProvider dataProtectionProvider,

generators/app/templates/AuthenticationOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace AspNet.Security.OAuth.<%= name %> {
1111
/// <summary>
1212
/// Defines a set of options used by <see cref="<%= name %>AuthenticationHandler"/>.
1313
/// </summary>
14-
public class <%= name %>AuthenticationOptions : OAuthAuthenticationOptions {
14+
public class <%= name %>AuthenticationOptions : OAuthOptions {
1515
public <%= name %>AuthenticationOptions() {
1616
AuthenticationScheme = <%= name %>AuthenticationDefaults.AuthenticationScheme;
1717
Caption = <%= name %>AuthenticationDefaults.Caption;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-aspnet-oauth",
3-
"version": "0.0.0",
3+
"version": "1.0.2",
44
"description": "Yeoman generator for OAuth Providers for ASP.NET 5",
55
"license": "MIT",
66
"main": "app/index.js",

0 commit comments

Comments
 (0)