public static OpenIddictBuilder AddUIIdentityApis <TApplicationUser>( this OpenIddictBuilder builder, Action <OpenIddictUIIdentityApiOptions> uiApiOptions = null ) where TApplicationUser : IdentityUser, new() { var options = new OpenIddictUIIdentityApiOptions(); uiApiOptions?.Invoke(options); builder.AddRoutePrefix(options.RoutePrefix); builder.Services.AddApiServices <TApplicationUser>(); builder.Services.AddAuthorizationServices(options.Policy); return(builder); }
/// <summary> /// Register the Api for the EF based UI Store. /// </summary> public static OpenIddictBuilder AddUIApis( this OpenIddictBuilder builder, Action <OpenIddictUIApiOptions> uiApiOptions = null ) { var options = new OpenIddictUIApiOptions(); uiApiOptions?.Invoke(options); builder.AddRoutePrefix(options.RoutePrefix); builder.Services.AddApiServices(uiApiOptions); builder.Services.AddAuthorizationServices(options.Policy); return(builder); }