@@ -40,7 +40,7 @@ public static class AuthorizationExtensions
40
40
/// Metadata provider. This can be an instance of <see cref="GraphType"/>,
41
41
/// <see cref="FieldType"/>, <see cref="Schema"/> or others.
42
42
/// </param>
43
- /// <returns> List of authorization policy names applied to this metadata provider. </returns>
43
+ /// <returns>List of authorization policy names applied to this metadata provider.</returns>
44
44
public static List < string > ? GetPolicies ( this IProvideMetadata provider ) => provider . GetMetadata < List < string > > ( POLICY_KEY ) ;
45
45
46
46
/// <summary>
@@ -51,7 +51,7 @@ public static class AuthorizationExtensions
51
51
/// Metadata provider. This can be an instance of <see cref="GraphType"/>,
52
52
/// <see cref="FieldType"/>, <see cref="Schema"/> or others.
53
53
/// </param>
54
- /// <returns> List of authorization role names applied to this metadata provider. </returns>
54
+ /// <returns>List of authorization role names applied to this metadata provider.</returns>
55
55
public static List < string > ? GetRoles ( this IProvideMetadata provider ) => provider . GetMetadata < List < string > > ( ROLE_KEY ) ;
56
56
57
57
/// <summary>
@@ -78,7 +78,7 @@ public static TMetadataProvider AllowAnonymous<TMetadataProvider>(this TMetadata
78
78
/// Metadata provider. This can be an instance of <see cref="GraphType"/>,
79
79
/// <see cref="FieldType"/>, <see cref="Schema"/> or others.
80
80
/// </param>
81
- /// <returns> <see langword="true"/> if any authorization policy is applied, otherwise <see langword="false"/>. </returns>
81
+ /// <returns><see langword="true"/>if any authorization policy is applied, otherwise <see langword="false"/>.</returns>
82
82
public static bool IsAuthorizationRequired ( this IProvideMetadata provider )
83
83
=> provider . GetMetadata ( AUTHORIZE_KEY , false ) || GetPolicies ( provider ) ? . Count > 0 || GetRoles ( provider ) ? . Count > 0 ;
84
84
@@ -107,8 +107,8 @@ public static TMetadataProvider Authorize<TMetadataProvider>(this TMetadataProvi
107
107
/// Metadata provider. This can be an instance of <see cref="GraphType"/>,
108
108
/// <see cref="FieldType"/>, <see cref="Schema"/> or others.
109
109
/// </param>
110
- /// <param name="policy"> Authorization policy name. </param>
111
- /// <returns> The reference to the specified <paramref name="provider"/>. </returns>
110
+ /// <param name="policy">Authorization policy name.</param>
111
+ /// <returns>The reference to the specified <paramref name="provider"/>.</returns>
112
112
public static TMetadataProvider AuthorizeWithPolicy < TMetadataProvider > ( this TMetadataProvider provider , string policy )
113
113
where TMetadataProvider : IProvideMetadata
114
114
{
@@ -137,8 +137,8 @@ public static TMetadataProvider AuthorizeWithPolicy<TMetadataProvider>(this TMet
137
137
/// Metadata provider. This can be an instance of <see cref="GraphType"/>,
138
138
/// <see cref="FieldType"/>, <see cref="Schema"/> or others.
139
139
/// </param>
140
- /// <param name="roles"> Comma-separated list of authorization role name(s). </param>
141
- /// <returns> The reference to the specified <paramref name="provider"/>. </returns>
140
+ /// <param name="roles">Comma-separated list of authorization role name(s).</param>
141
+ /// <returns>The reference to the specified <paramref name="provider"/>.</returns>
142
142
public static TMetadataProvider AuthorizeWithRoles < TMetadataProvider > ( this TMetadataProvider provider , string roles )
143
143
where TMetadataProvider : IProvideMetadata
144
144
{
@@ -170,8 +170,8 @@ public static TMetadataProvider AuthorizeWithRoles<TMetadataProvider>(this TMeta
170
170
/// Metadata provider. This can be an instance of <see cref="GraphType"/>,
171
171
/// <see cref="FieldType"/>, <see cref="Schema"/> or others.
172
172
/// </param>
173
- /// <param name="roles"> List of authorization role name(s). </param>
174
- /// <returns> The reference to the specified <paramref name="provider"/>. </returns>
173
+ /// <param name="roles">List of authorization role name(s).</param>
174
+ /// <returns>The reference to the specified <paramref name="provider"/>.</returns>
175
175
public static TMetadataProvider AuthorizeWithRoles < TMetadataProvider > ( this TMetadataProvider provider , params string [ ] roles )
176
176
where TMetadataProvider : IProvideMetadata
177
177
{
@@ -198,8 +198,8 @@ public static TMetadataProvider AuthorizeWithRoles<TMetadataProvider>(this TMeta
198
198
/// <typeparam name="TSourceType"></typeparam>
199
199
/// <typeparam name="TReturnType"></typeparam>
200
200
/// <param name="builder"></param>
201
- /// <param name="policy"> Authorization policy name. </param>
202
- /// <returns> The reference to the specified <paramref name="builder"/>. </returns>
201
+ /// <param name="policy">Authorization policy name.</param>
202
+ /// <returns>The reference to the specified <paramref name="builder"/>.</returns>
203
203
public static FieldBuilder < TSourceType , TReturnType > AuthorizeWithPolicy < TSourceType , TReturnType > (
204
204
this FieldBuilder < TSourceType , TReturnType > builder , string policy )
205
205
{
@@ -213,8 +213,8 @@ public static FieldBuilder<TSourceType, TReturnType> AuthorizeWithPolicy<TSource
213
213
/// contains a role with the same name, then it will not be added twice.
214
214
/// </summary>
215
215
/// <param name="builder"></param>
216
- /// <param name="roles"> Comma-separated list of authorization role name(s). </param>
217
- /// <returns> The reference to the specified <paramref name="builder"/>. </returns>
216
+ /// <param name="roles">Comma-separated list of authorization role name(s).</param>
217
+ /// <returns>The reference to the specified <paramref name="builder"/>.</returns>
218
218
public static FieldBuilder < TSourceType , TReturnType > AuthorizeWithRoles < TSourceType , TReturnType > (
219
219
this FieldBuilder < TSourceType , TReturnType > builder , string roles )
220
220
{
@@ -227,8 +227,8 @@ public static FieldBuilder<TSourceType, TReturnType> AuthorizeWithRoles<TSourceT
227
227
/// contains a role with the same name, then it will not be added twice.
228
228
/// </summary>
229
229
/// <param name="builder"></param>
230
- /// <param name="roles"> List of authorization role name(s). </param>
231
- /// <returns> The reference to the specified <paramref name="builder"/>. </returns>
230
+ /// <param name="roles">List of authorization role name(s).</param>
231
+ /// <returns>The reference to the specified <paramref name="builder"/>.</returns>
232
232
public static FieldBuilder < TSourceType , TReturnType > AuthorizeWithRoles < TSourceType , TReturnType > (
233
233
this FieldBuilder < TSourceType , TReturnType > builder , params string [ ] roles )
234
234
{
@@ -258,8 +258,8 @@ public static FieldBuilder<TSourceType, TReturnType> AllowAnonymous<TSourceType,
258
258
/// </summary>
259
259
/// <typeparam name="TSourceType"></typeparam>
260
260
/// <param name="builder"></param>
261
- /// <param name="policy"> Authorization policy name. </param>
262
- /// <returns> The reference to the specified <paramref name="builder"/>. </returns>
261
+ /// <param name="policy">Authorization policy name.</param>
262
+ /// <returns>The reference to the specified <paramref name="builder"/>.</returns>
263
263
public static ConnectionBuilder < TSourceType > AuthorizeWithPolicy < TSourceType > (
264
264
this ConnectionBuilder < TSourceType > builder , string policy )
265
265
{
@@ -273,8 +273,8 @@ public static ConnectionBuilder<TSourceType> AuthorizeWithPolicy<TSourceType>(
273
273
/// contains a role with the same name, then it will not be added twice.
274
274
/// </summary>
275
275
/// <param name="builder"></param>
276
- /// <param name="roles"> Comma-separated list of authorization role name(s). </param>
277
- /// <returns> The reference to the specified <paramref name="builder"/>. </returns>
276
+ /// <param name="roles">Comma-separated list of authorization role name(s).</param>
277
+ /// <returns>The reference to the specified <paramref name="builder"/>.</returns>
278
278
public static ConnectionBuilder < TSourceType > AuthorizeWithRoles < TSourceType > (
279
279
this ConnectionBuilder < TSourceType > builder , string roles )
280
280
{
@@ -287,8 +287,8 @@ public static ConnectionBuilder<TSourceType> AuthorizeWithRoles<TSourceType>(
287
287
/// contains a role with the same name, then it will not be added twice.
288
288
/// </summary>
289
289
/// <param name="builder"></param>
290
- /// <param name="roles"> List of authorization role name(s). </param>
291
- /// <returns> The reference to the specified <paramref name="builder"/>. </returns>
290
+ /// <param name="roles">List of authorization role name(s).</param>
291
+ /// <returns>The reference to the specified <paramref name="builder"/>.</returns>
292
292
public static ConnectionBuilder < TSourceType > AuthorizeWithRoles < TSourceType > (
293
293
this ConnectionBuilder < TSourceType > builder , params string [ ] roles )
294
294
{
0 commit comments