| 1 | using AgentForge.Abstractions; |
| 2 | using Microsoft.AspNetCore.Builder; |
| 3 | using Microsoft.Extensions.Configuration; |
| 4 | using Microsoft.Extensions.DependencyInjection; |
| 5 | |
| 6 | namespace AgentForge.Plugin.OAuth.Web; |
| 7 | |
| 8 | public sealed class OAuthWebForgePlugin : IForgePlugin |
| 9 | { |
| 10 | public string Id => "oauth-web"; |
| 11 | |
| 12 | public string DisplayName => "Web auth shell (login, device, session)"; |
| 13 | |
| 14 | public void ConfigureServices(IServiceCollection services, IConfiguration configuration) |
| 15 | { |
| 16 | } |
| 17 | |
| 18 | public void MapEndpoints(WebApplication app) => ForgeAuthViewEndpoints.Map(app); |
| 19 | |
| 20 | public void RegisterFeatures(ForgeFeatureRegistry registry) => registry.Add("web_auth"); |
| 21 | } |
| 22 | |
View only · write via MCP/CIDE