Using Dotnet
novotnyllc/dotnet-artisan
Detects .NET intent for any C, ASP.NET Core, EF Core, Blazor, MAUI, Uno Platform, WPF, WinUI, SignalR, gRPC, xUnit, NuGet, or MSBuild request from prompt keywords and repository signals (.sln…
Implement Sign-In with Ethereum (SIWE / EIP-4361) authentication in Blazor with JWT tokens, session management, and AuthorizeView (.NET/C).
$ npx skills add Nethereum/Nethereum --skill blazor-authentication -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Nethereum/Nethereum blazor-authentication --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Nethereum/Nethereum.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/nethereum-skills/skills/blazor-authentication .claude/skills/blazor-authentication && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "blazor-authentication" agent skill from https://github.com/Nethereum/Nethereum/tree/master/plugins/nethereum-skills/skills/blazor-authentication into .claude/skills/blazor-authentication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "blazor-authentication", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Nethereum/Nethereum/tree/master/plugins/nethereum-skills/skills/blazor-authenticationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Nethereum/Nethereum --skill blazor-authentication -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Nethereum/Nethereum blazor-authentication --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nethereum/Nethereum.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/nethereum-skills/skills/blazor-authentication .agents/skills/blazor-authentication && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "blazor-authentication" agent skill from https://github.com/Nethereum/Nethereum/tree/master/plugins/nethereum-skills/skills/blazor-authentication into .agents/skills/blazor-authentication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "blazor-authentication", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Nethereum/Nethereum --skill blazor-authentication -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Nethereum/Nethereum blazor-authentication --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nethereum/Nethereum.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/nethereum-skills/skills/blazor-authentication .cursor/skills/blazor-authentication && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "blazor-authentication" agent skill from https://github.com/Nethereum/Nethereum/tree/master/plugins/nethereum-skills/skills/blazor-authentication into .cursor/skills/blazor-authentication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "blazor-authentication", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Nethereum/Nethereum.git --path plugins/nethereum-skills/skills/blazor-authentication--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Nethereum/Nethereum --skill blazor-authentication -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Nethereum/Nethereum blazor-authentication --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nethereum/Nethereum.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/nethereum-skills/skills/blazor-authentication .gemini/skills/blazor-authentication && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "blazor-authentication" agent skill from https://github.com/Nethereum/Nethereum/tree/master/plugins/nethereum-skills/skills/blazor-authentication into .gemini/skills/blazor-authentication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "blazor-authentication", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Nethereum/Nethereum blazor-authenticationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Nethereum/Nethereum --skill blazor-authentication -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Nethereum/Nethereum.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/nethereum-skills/skills/blazor-authentication .github/skills/blazor-authentication && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "blazor-authentication" agent skill from https://github.com/Nethereum/Nethereum/tree/master/plugins/nethereum-skills/skills/blazor-authentication into .github/skills/blazor-authentication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "blazor-authentication", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Nethereum/Nethereum --skill blazor-authentication -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Nethereum/Nethereum blazor-authentication --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nethereum/Nethereum.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/nethereum-skills/skills/blazor-authentication .opencode/skills/blazor-authentication && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "blazor-authentication" agent skill from https://github.com/Nethereum/Nethereum/tree/master/plugins/nethereum-skills/skills/blazor-authentication into .opencode/skills/blazor-authentication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "blazor-authentication", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
blazor-authenticationImplement Sign-In with Ethereum (SIWE / EIP-4361) authentication in Blazor with JWT tokens, session management, and AuthorizeView (.NET/C).
Blazor Authentication is an agent skill from Nethereum/Nethereum. Implement Sign-In with Ethereum (SIWE / EIP-4361) authentication in Blazor with JWT tokens, session management, and AuthorizeView (.NET/C). Use this skill when the user asks about SIWE, Sign-In with Ethereum, Blazor authentication with Ethereum wallets, JWT with SIWE, EthereumAuthenticationStateProvider, or wallet-based login.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering Authentication. It works with Blazor, Ethereum, C# and .NET. The repository describes itself as: Ethereum .Net cross platform integration library. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 229f278. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
dotnetFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comdocs.nethereum.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Blazor Authentication loads about 1.8k tokens when it runs. Until then it costs about 88 tokens; SKILL.md has 269 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Nethereum/Nethereum at commit 229f278, republished under its MIT licence (© Nethereum). 269 words, ~1,829 tokens.
.claude/skills/blazor-authentication/SKILL.md (or your agent's skills folder).Implement Sign-In with Ethereum (EIP-4361) authentication in Blazor. Supports Blazor Server (direct signing) and Blazor WASM (REST API + JWT).
NuGet: Nethereum.Siwe, Nethereum.Blazor
A complete starter template is available:
dotnet new install Nethereum.Templates.Pack
dotnet new nethereum-siweTemplate repo: https://github.com/Nethereum/Nethereum.Templates.Pack (templates/Nethereum.Templates.Siwe)
SiweMessage with a random nonce<AuthorizeView> checks claimsEverything runs in one process. No REST API needed.
builder.Services.AddSingleton<SiweMessageService>();
builder.Services.AddSingleton<NethereumSiweAuthenticatorService>();
builder.Services.AddScoped<IAccessTokenService, ProtectedSessionStorageAccessTokenService>();
builder.Services.AddScoped<AuthenticationStateProvider, SiweAuthenticationServerStateProvider>();The SiweAuthenticationServerStateProvider orchestrates the full flow:
public async Task AuthenticateAsync(string address = null)
{
if (string.IsNullOrEmpty(address))
address = await EthereumHostProvider.GetProviderSelectedAccountAsync();
var siweMessage = new DefaultSiweMessage();
siweMessage.Address = address.ConvertToEthereumChecksumAddress();
siweMessage.SetExpirationTime(DateTime.UtcNow.AddMinutes(10));
siweMessage.SetNotBefore(DateTime.UtcNow);
var fullMessage = await nethereumSiweAuthenticatorService.AuthenticateAsync(siweMessage);
await _accessTokenService.SetAccessTokenAsync(SiweMessageStringBuilder.BuildMessage(fullMessage));
await MarkUserAsAuthenticated();
}The NethereumSiweAuthenticatorService (from Nethereum.UI) handles:
IEthereumHostProvider[AllowAnonymous]
[HttpPost("newsiwemessage")]
public IActionResult GenerateNewSiweMessage([FromBody] string address)
{
var message = new DefaultSiweMessage();
message.SetExpirationTime(DateTime.UtcNow.AddMinutes(10));
message.SetNotBefore(DateTime.UtcNow);
message.Address = address.ConvertToEthereumChecksumAddress();
return Ok(_siweMessageService.BuildMessageToSign(message));
}[AllowAnonymous]
[HttpPost("authenticate")]
public async Task<IActionResult> Authenticate(AuthenticateRequest request)
{
var siweMessage = SiweMessageParser.Parse(request.SiweEncodedMessage);
if (!await _siweMessageService.IsUserAddressRegistered(siweMessage))
return Unauthorized("Invalid User");
if (!await _siweMessageService.IsMessageSignatureValid(siweMessage, request.Signature))
return Unauthorized("Invalid Signature");
if (!_siweMessageService.IsMessageTheSameAsSessionStored(siweMessage))
return Unauthorized("Nonce mismatch");
if (!_siweMessageService.HasMessageDateStartedAndNotExpired(siweMessage))
return Unauthorized("Expired");
var token = _siweJwtAuthorisationService.GenerateToken(siweMessage, request.Signature);
return Ok(new AuthenticateResponse { Address = siweMessage.Address, Jwt = token });
}public async Task AuthenticateAsync(string address)
{
var siweMessage = await _siweUserLoginService.GenerateNewSiweMessage(address);
var signedMessage = await EthereumHostProvider.SignMessageAsync(siweMessage);
var response = await _siweUserLoginService.Authenticate(
SiweMessageParser.Parse(siweMessage), signedMessage);
if (response.Jwt != null)
{
await _accessTokenService.SetAccessTokenAsync(response.Jwt);
await MarkUserAsAuthenticated();
}
}Two roles are available:
| Role | Meaning |
|---|---|
EthereumConnected | Wallet is connected (from EthereumAuthenticationStateProvider) |
SiweAuthenticated | SIWE signature verified (from SiweAuthentication*StateProvider) |
<AuthorizeView Roles="EthereumConnected">
<Authorized>
<p>Wallet connected: @context.User.Identity?.Name</p>
<AuthorizeView Roles="SiweAuthenticated">
<NotAuthorized>
<button @onclick="LoginAsync">Sign In</button>
</NotAuthorized>
</AuthorizeView>
</Authorized>
<NotAuthorized>
<button @onclick="ConnectWalletAsync">Connect Wallet</button>
</NotAuthorized>
</AuthorizeView>
<AuthorizeView Roles="SiweAuthenticated">
<Authorized>
<p>Authenticated as @context.User.FindFirst(ClaimTypes.NameIdentifier)?.Value</p>
<MyProtectedComponent />
</Authorized>
</AuthorizeView>Use ERC721BalanceEthereumUserService to require users hold a specific NFT:
var userService = new ERC721BalanceEthereumUserService(web3, nftContractAddress);
var siweService = new SiweMessageService(
new InMemorySessionNonceStorage(),
userService);IsUserAddressRegistered will check the user's NFT balance before allowing authentication.
Pass a Web3 instance to SiweMessageService for smart contract wallet signature verification:
var siweService = new SiweMessageService(
new InMemorySessionNonceStorage(),
ethereumUserService: null,
web3ForERC1271Validation: web3);IsMessageSignatureValid automatically falls back to ERC-1271 on-chain verification, and supports ERC-6492 for counterfactual (not-yet-deployed) smart wallets.
| Method | Purpose |
|---|---|
BuildMessageToSign(message) | Build message string, assign nonce, store in session |
IsMessageSignatureValid(message, signature) | Verify ECDSA or ERC-1271/ERC-6492 signature |
IsValidMessage(message, signature) | Full validation: timing + session + signature |
IsUserAddressRegistered(message) | Check user via IEthereumUserService |
HasMessageDateStartedAndNotExpired(message) | Check NotBefore and ExpirationTime |
IsMessageTheSameAsSessionStored(message) | Verify message matches stored nonce |
InvalidateSession(message) | Remove session (logout) |
new Claim(ClaimTypes.Name, userName);
new Claim(ClaimTypes.NameIdentifier, ethereumAddress);
new Claim(ClaimTypes.Role, "EthereumConnected");
new Claim(ClaimTypes.Role, "SiweAuthenticated");For full documentation, see: https://docs.nethereum.com/docs/blazor-dapp-integration/guide-blazor-authentication
© Nethereum, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in plugins/nethereum-skills/skills/blazor-authentication of Nethereum/Nethereum.
Open the folder on GitHubat commit 229f278
Blazor Authentication next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Blazor Authentication this skillNethereum/Nethereum | 2.3k | — | ~1.8k | Automated safety check: Pass | MIT | |
| Using Dotnetnovotnyllc/dotnet-artisan | 233 | — | ~2.3k | Automated safety check: Warn | MIT | |
| Dotnet Webapidotnet/skills | 5.6k | 2 repos | ~5.5k | Automated safety check: Pass | MIT | |
| C# and .NET DeveloperJeffallan/claude-skills | 12k | — | ~1.3k | Automated safety check: Pass | MIT | |
| .NET Core ExpertJeffallan/claude-skills | 12k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Use JS Interopdotnet/skills | 5.6k | 1 repos | ~2.7k | Automated safety check: Pass | MIT |
novotnyllc/dotnet-artisan
Detects .NET intent for any C, ASP.NET Core, EF Core, Blazor, MAUI, Uno Platform, WPF, WinUI, SignalR, gRPC, xUnit, NuGet, or MSBuild request from prompt keywords and repository signals (.sln…
dotnet/skills
Guides creation and modification of ASP.NET Core Web API endpoints with correct HTTP semantics, OpenAPI metadata, and error handling.
Jeffallan/claude-skills
Guides C# work on .NET 8+: ASP.NET Core APIs, Entity Framework Core data access, Blazor apps and CQRS with MediatR, following a five-step build workflow.
Jeffallan/claude-skills
Guides building .NET 8 services with minimal APIs, clean architecture, Entity Framework Core, MediatR CQRS and JWT authentication, with build and test checks.
dotnet/skills
Add, review, or fix JavaScript interop in Blazor components.
microsoft-foundry/foundry-agent-webapp
Provides C and ASP.NET Core coding standards for this repository.
Nethereum/Nethereum
Help users batch multiple calls into a single UserOperation and sponsor gas with paymasters using Nethereum Account Abstraction.
Nethereum/Nethereum
Help users run an ERC-4337 bundler using Nethereum — set up in-process or standalone bundlers with mempool, validation, reputation, and JSON-RPC server.
Nethereum/Nethereum
Encode and decode Ethereum ABI data with Nethereum. An agent skill from Nethereum/Nethereum.
Nethereum/Nethereum
Fetch contract ABIs from Sourcify, Etherscan, and 4Byte Directory using the composite ABIInfoStorage pattern (.NET/C).
Nethereum/Nethereum
Help users implement ERC-4337 Account Abstraction with Nethereum — send UserOperations, use smart accounts, route contract calls through a bundler, enable gasless transactions, or work with AA in…
Nethereum/Nethereum
Validate and format Ethereum addresses with Nethereum. An agent skill from Nethereum/Nethereum.
Categories
Implement Sign-In with Ethereum (SIWE / EIP-4361) authentication in Blazor with JWT tokens, session management, and AuthorizeView (.NET/C). Blazor Authentication is an agent skill from Nethereum/Nethereum.NET/C).
Blazor Authentication fits situations like: the user asks about SIWE; sign-In with Ethereum; blazor authentication with Ethereum wallets; ethereumAuthenticationStateProvider.
Run `npx skills add Nethereum/Nethereum --skill blazor-authentication -a claude-code`. Or copy the skill folder (plugins/nethereum-skills/skills/blazor-authentication in Nethereum/Nethereum) into .claude/skills/blazor-authentication in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Nethereum/Nethereum --skill blazor-authentication -a codex`. Or copy the skill folder (plugins/nethereum-skills/skills/blazor-authentication in Nethereum/Nethereum) into .agents/skills/blazor-authentication in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Nethereum/Nethereum --skill blazor-authentication -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/blazor-authentication, .gemini/skills/blazor-authentication, .github/skills/blazor-authentication and .opencode/skills/blazor-authentication in your project.
Going by SKILL.md and its folder, Blazor Authentication needs the command-line tools its instructions call (dotnet).
SKILL.md names 2 domains. As links in the text: github.com and docs.nethereum.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Blazor Authentication is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Blazor Authentication: Using Dotnet (novotnyllc/dotnet-artisan, 233 stars), Dotnet Webapi (dotnet/skills, 5.6k stars), C# and .NET Developer (Jeffallan/claude-skills, 12k stars) and .NET Core Expert (Jeffallan/claude-skills, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Nethereum (a GitHub organization) maintains it in Nethereum/Nethereum, which has 2,260 GitHub stars. The repository holds 71 skills in this directory. The repository was last updated on October 5, 2026.
Source: Nethereum/Nethereum on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.