Skip to content

Commit b9ff89a

Browse files
authored
Remove word 'refresh' from method name (#528)
1 parent 34cdfe4 commit b9ff89a

File tree

12 files changed

+24
-24
lines changed

12 files changed

+24
-24
lines changed

8.0/BlazorWebAppOidc/BlazorWebAppOidc/CookieOidcServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Microsoft.Extensions.DependencyInjection;
77

88
internal static partial class CookieOidcServiceCollectionExtensions
99
{
10-
public static IServiceCollection ConfigureCookieOidcRefresh(this IServiceCollection services, string cookieScheme, string oidcScheme)
10+
public static IServiceCollection ConfigureCookieOidc(this IServiceCollection services, string cookieScheme, string oidcScheme)
1111
{
1212
services.AddSingleton<CookieOidcRefresher>();
1313
services.AddOptions<CookieAuthenticationOptions>(cookieScheme).Configure<CookieOidcRefresher>((cookieOptions, refresher) =>

8.0/BlazorWebAppOidc/BlazorWebAppOidc/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
// ........................................................................
116116

117117
// ........................................................................
118-
// OIDC connect options set later via ConfigureCookieOidcRefresh
118+
// OIDC connect options set later via ConfigureCookieOidc
119119
//
120120
// (1) The "offline_access" scope is required for the refresh token.
121121
//
@@ -127,12 +127,12 @@
127127
})
128128
.AddCookie(CookieAuthenticationDefaults.AuthenticationScheme);
129129

130-
// ConfigureCookieOidcRefresh attaches a cookie OnValidatePrincipal callback to get
130+
// ConfigureCookieOidc attaches a cookie OnValidatePrincipal callback to get
131131
// a new access token when the current one expires, and reissue a cookie with the
132132
// new access token saved inside. If the refresh fails, the user will be signed
133133
// out. OIDC connect options are set for saving tokens and the offline access
134134
// scope.
135-
builder.Services.ConfigureCookieOidcRefresh(CookieAuthenticationDefaults.AuthenticationScheme, MS_OIDC_SCHEME);
135+
builder.Services.ConfigureCookieOidc(CookieAuthenticationDefaults.AuthenticationScheme, MS_OIDC_SCHEME);
136136

137137
builder.Services.AddAuthorization();
138138

8.0/BlazorWebAppOidcBff/BlazorWebAppOidc/CookieOidcServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Microsoft.Extensions.DependencyInjection;
77

88
internal static partial class CookieOidcServiceCollectionExtensions
99
{
10-
public static IServiceCollection ConfigureCookieOidcRefresh(this IServiceCollection services, string cookieScheme, string oidcScheme)
10+
public static IServiceCollection ConfigureCookieOidc(this IServiceCollection services, string cookieScheme, string oidcScheme)
1111
{
1212
services.AddSingleton<CookieOidcRefresher>();
1313
services.AddOptions<CookieAuthenticationOptions>(cookieScheme).Configure<CookieOidcRefresher>((cookieOptions, refresher) =>

8.0/BlazorWebAppOidcBff/BlazorWebAppOidc/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
// ........................................................................
119119

120120
// ........................................................................
121-
// OIDC connect options set later via ConfigureCookieOidcRefresh
121+
// OIDC connect options set later via ConfigureCookieOidc
122122
//
123123
// (1) The "offline_access" scope is required for the refresh token.
124124
//
@@ -131,12 +131,12 @@
131131
})
132132
.AddCookie(CookieAuthenticationDefaults.AuthenticationScheme);
133133

134-
// ConfigureCookieOidcRefresh attaches a cookie OnValidatePrincipal callback to get
134+
// ConfigureCookieOidc attaches a cookie OnValidatePrincipal callback to get
135135
// a new access token when the current one expires, and reissue a cookie with the
136136
// new access token saved inside. If the refresh fails, the user will be signed
137137
// out. OIDC connect options are set for saving tokens and the offline access
138138
// scope.
139-
builder.Services.ConfigureCookieOidcRefresh(CookieAuthenticationDefaults.AuthenticationScheme, MS_OIDC_SCHEME);
139+
builder.Services.ConfigureCookieOidc(CookieAuthenticationDefaults.AuthenticationScheme, MS_OIDC_SCHEME);
140140

141141
builder.Services.AddAuthorization();
142142

8.0/BlazorWebAppOidcServer/BlazorWebAppOidcServer/CookieOidcServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Microsoft.Extensions.DependencyInjection;
77

88
internal static partial class CookieOidcServiceCollectionExtensions
99
{
10-
public static IServiceCollection ConfigureCookieOidcRefresh(this IServiceCollection services, string cookieScheme, string oidcScheme)
10+
public static IServiceCollection ConfigureCookieOidc(this IServiceCollection services, string cookieScheme, string oidcScheme)
1111
{
1212
services.AddSingleton<CookieOidcRefresher>();
1313
services.AddOptions<CookieAuthenticationOptions>(cookieScheme).Configure<CookieOidcRefresher>((cookieOptions, refresher) =>

8.0/BlazorWebAppOidcServer/BlazorWebAppOidcServer/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
// ........................................................................
112112

113113
// ........................................................................
114-
// OIDC connect options set later via ConfigureCookieOidcRefresh
114+
// OIDC connect options set later via ConfigureCookieOidc
115115
//
116116
// (1) The "offline_access" scope is required for the refresh token.
117117
//
@@ -123,12 +123,12 @@
123123
})
124124
.AddCookie(CookieAuthenticationDefaults.AuthenticationScheme);
125125

126-
// ConfigureCookieOidcRefresh attaches a cookie OnValidatePrincipal callback to get
126+
// ConfigureCookieOidc attaches a cookie OnValidatePrincipal callback to get
127127
// a new access token when the current one expires, and reissue a cookie with the
128128
// new access token saved inside. If the refresh fails, the user will be signed
129129
// out. OIDC connect options are set for saving tokens and the offline access
130130
// scope.
131-
builder.Services.ConfigureCookieOidcRefresh(CookieAuthenticationDefaults.AuthenticationScheme, MS_OIDC_SCHEME);
131+
builder.Services.ConfigureCookieOidc(CookieAuthenticationDefaults.AuthenticationScheme, MS_OIDC_SCHEME);
132132

133133
builder.Services.AddAuthorization();
134134

9.0/BlazorWebAppOidc/BlazorWebAppOidc/CookieOidcServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Microsoft.Extensions.DependencyInjection;
77

88
internal static partial class CookieOidcServiceCollectionExtensions
99
{
10-
public static IServiceCollection ConfigureCookieOidcRefresh(this IServiceCollection services, string cookieScheme, string oidcScheme)
10+
public static IServiceCollection ConfigureCookieOidc(this IServiceCollection services, string cookieScheme, string oidcScheme)
1111
{
1212
services.AddSingleton<CookieOidcRefresher>();
1313
services.AddOptions<CookieAuthenticationOptions>(cookieScheme).Configure<CookieOidcRefresher>((cookieOptions, refresher) =>

9.0/BlazorWebAppOidc/BlazorWebAppOidc/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
// ........................................................................
127127

128128
// ........................................................................
129-
// OIDC connect options set later via ConfigureCookieOidcRefresh
129+
// OIDC connect options set later via ConfigureCookieOidc
130130
//
131131
// (1) The "offline_access" scope is required for the refresh token.
132132
//
@@ -138,12 +138,12 @@
138138
})
139139
.AddCookie(CookieAuthenticationDefaults.AuthenticationScheme);
140140

141-
// ConfigureCookieOidcRefresh attaches a cookie OnValidatePrincipal callback to get
141+
// ConfigureCookieOidc attaches a cookie OnValidatePrincipal callback to get
142142
// a new access token when the current one expires, and reissue a cookie with the
143143
// new access token saved inside. If the refresh fails, the user will be signed
144144
// out. OIDC connect options are set for saving tokens and the offline access
145145
// scope.
146-
builder.Services.ConfigureCookieOidcRefresh(CookieAuthenticationDefaults.AuthenticationScheme, MS_OIDC_SCHEME);
146+
builder.Services.ConfigureCookieOidc(CookieAuthenticationDefaults.AuthenticationScheme, MS_OIDC_SCHEME);
147147

148148
builder.Services.AddAuthorization();
149149

9.0/BlazorWebAppOidcBff/BlazorWebAppOidc/CookieOidcServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Microsoft.Extensions.DependencyInjection;
77

88
internal static partial class CookieOidcServiceCollectionExtensions
99
{
10-
public static IServiceCollection ConfigureCookieOidcRefresh(this IServiceCollection services, string cookieScheme, string oidcScheme)
10+
public static IServiceCollection ConfigureCookieOidc(this IServiceCollection services, string cookieScheme, string oidcScheme)
1111
{
1212
services.AddSingleton<CookieOidcRefresher>();
1313
services.AddOptions<CookieAuthenticationOptions>(cookieScheme).Configure<CookieOidcRefresher>((cookieOptions, refresher) =>

9.0/BlazorWebAppOidcBff/BlazorWebAppOidc/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
// ........................................................................
131131

132132
// ........................................................................
133-
// OIDC connect options set later via ConfigureCookieOidcRefresh
133+
// OIDC connect options set later via ConfigureCookieOidc
134134
//
135135
// (1) The "offline_access" scope is required for the refresh token.
136136
//
@@ -143,12 +143,12 @@
143143
})
144144
.AddCookie(CookieAuthenticationDefaults.AuthenticationScheme);
145145

146-
// ConfigureCookieOidcRefresh attaches a cookie OnValidatePrincipal callback to get
146+
// ConfigureCookieOidc attaches a cookie OnValidatePrincipal callback to get
147147
// a new access token when the current one expires, and reissue a cookie with the
148148
// new access token saved inside. If the refresh fails, the user will be signed
149149
// out. OIDC connect options are set for saving tokens and the offline access
150150
// scope.
151-
builder.Services.ConfigureCookieOidcRefresh(CookieAuthenticationDefaults.AuthenticationScheme, MS_OIDC_SCHEME);
151+
builder.Services.ConfigureCookieOidc(CookieAuthenticationDefaults.AuthenticationScheme, MS_OIDC_SCHEME);
152152

153153
builder.Services.AddAuthorization();
154154

9.0/BlazorWebAppOidcServer/BlazorWebAppOidcServer/CookieOidcServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Microsoft.Extensions.DependencyInjection;
77

88
internal static partial class CookieOidcServiceCollectionExtensions
99
{
10-
public static IServiceCollection ConfigureCookieOidcRefresh(this IServiceCollection services, string cookieScheme, string oidcScheme)
10+
public static IServiceCollection ConfigureCookieOidc(this IServiceCollection services, string cookieScheme, string oidcScheme)
1111
{
1212
services.AddSingleton<CookieOidcRefresher>();
1313

9.0/BlazorWebAppOidcServer/BlazorWebAppOidcServer/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
// ........................................................................
125125

126126
// ........................................................................
127-
// OIDC connect options set later via ConfigureCookieOidcRefresh
127+
// OIDC connect options set later via ConfigureCookieOidc
128128
//
129129
// (1) The "offline_access" scope is required for the refresh token.
130130
//
@@ -136,12 +136,12 @@
136136
})
137137
.AddCookie(CookieAuthenticationDefaults.AuthenticationScheme);
138138

139-
// ConfigureCookieOidcRefresh attaches a cookie OnValidatePrincipal callback to get
139+
// ConfigureCookieOidc attaches a cookie OnValidatePrincipal callback to get
140140
// a new access token when the current one expires, and reissue a cookie with the
141141
// new access token saved inside. If the refresh fails, the user will be signed
142142
// out. OIDC connect options are set for saving tokens and the offline access
143143
// scope.
144-
builder.Services.ConfigureCookieOidcRefresh(CookieAuthenticationDefaults.AuthenticationScheme, MS_OIDC_SCHEME);
144+
builder.Services.ConfigureCookieOidc(CookieAuthenticationDefaults.AuthenticationScheme, MS_OIDC_SCHEME);
145145

146146
builder.Services.AddAuthorization();
147147

0 commit comments

Comments
 (0)