Modernize the example, add a .NET Framework sample, and demonstrate the 3.0.0 API#11
Closed
bartes wants to merge 2 commits into
Closed
Modernize the example, add a .NET Framework sample, and demonstrate the 3.0.0 API#11bartes wants to merge 2 commits into
bartes wants to merge 2 commits into
Conversation
- Upgrade the ASP.NET Core sample to net8.0 and migrate from Startup.cs to minimal hosting in Program.cs; switch to AddDefaultIdentity. - Drop the Microsoft.VisualStudio.Threading dependency; fire-and-forget Castle calls now use a discard. Remove unused scaffolding and the SQL Server migrations (the app uses the in-memory provider). - Add a demo catalog (Demos/DemoCatalog.cs) surfaced on the home page. - Add a Dockerfile for the ASP.NET Core sample and refresh the README and appsettings. - Add a minimal net48 (System.Web) console sample exercising Context.FromHttpRequest(HttpRequestBase). - Add GitHub Actions: an Ubuntu job builds the ASP.NET Core sample and a Windows job builds the .NET Framework sample.
…ve Login off legacy endpoints Adds demo pages for the Lists, Privacy and Events APIs and webhook signature verification, and registers them in the demo catalog. The Login demo now sends Risk on success and Log on failure, and the .NET Framework sample no longer reads the client id. Bumps the ASP.NET Core sample to Castle.Sdk 3.0.0.
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings the example up to current .NET, broadens platform coverage with a second sample app, and demonstrates the full
Castle.Sdk3.0.0 API surface.Modernization & platform coverage
src/CastleDemo) tonet8.0, migrate fromStartup.csto minimal hosting inProgram.cs, and switch toAddDefaultIdentity.Microsoft.VisualStudio.Threadingdependency; fire-and-forget Castle calls now use a discard (_ = client.Log(...)). Remove unused scaffolding (ScaffoldingReadme.txt) and the SQL Server migrations, since the app uses the in-memory provider.Demos/DemoCatalog.cs) surfaced on the home page.Dockerfilefor the ASP.NET Core sample and refresh the README andappsettings.net48(System.Web) console sample (src/CastleDemo.Framework) that adapts aSystem.Webrequest toContext.FromHttpRequest(HttpRequestBase)and sends a Risk request. RequiresCastle.Sdk2.4.0+ (the first version with anet48target).3.0.0 API demos
X-Castle-Signatureheader. Each is registered inDemos/DemoCatalog.csand listed on the home page.Riskrequest on success and aLogrequest on failure (previously Authenticate/Track).net48console sample no longer reads the client id; it builds context from IP and headers and sends a Risk request.Castle.Sdk3.0.0.