Example #1
0
 /// <summary>
 /// Configures defaults for Identity Server for ASP.NET Core scenarios.
 /// </summary>
 /// <typeparam name="TUser">The <typeparamref name="TUser"/> type.</typeparam>
 /// <typeparam name="TContext">The <typeparamref name="TContext"/> type.</typeparam>
 /// <param name="builder">The <see cref="IIdentityServerBuilder"/>.</param>
 /// <returns>The <see cref="IIdentityServerBuilder"/>.</returns>
 public static IIdentityServerBuilder AddApiAuthorization <TUser, TContext>(this IIdentityServerBuilder builder)
     where TUser : class
     where TContext : DbContext, IPersistedGrantDbContext
 {
     builder.AddApiAuthorization <TUser, TContext>(o => { });
     return(builder);
 }
Example #2
0
 /// <summary>
 /// Configures defaults for Identity Server for ASP.NET Core scenarios.
 /// </summary>
 /// <typeparam name="TUser">The <typeparamref name="TUser"/> type.</typeparam>
 /// <param name="builder">The <see cref="IIdentityServerBuilder"/>.</param>
 /// <returns>The <see cref="IIdentityServerBuilder"/>.</returns>
 public static IIdentityServerBuilder AddApiAuthorization <TUser>(
     this IIdentityServerBuilder builder) where TUser : class
 {
     builder.AddApiAuthorization <TUser>(o => { });
     return(builder);
 }