Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

blazor-authentication

Skill by Nethereum

Implements Sign-In with Ethereum (SIWE, EIP-4361) authentication in Blazor using .NET and C#. It is for developers who want wallet-based login with JWT tokens, session management and AuthorizeView checks.

  • Score 76
  • 2.3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install blazor-authentication

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Nethereum/Nethereum /tmp/Nethereum && mkdir -p ~/.claude/skills && cp -r /tmp/Nethereum/plugins/nethereum-skills/skills/blazor-authentication ~/.claude/skills/blazor-authentication

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install blazor-authentication in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an assistant through adding Sign-In with Ethereum (SIWE, EIP-4361) to a Blazor app in .NET and C#. It covers Blazor Server, where signing and session handling run in one process, and Blazor WASM, which uses a REST API that issues JWT tokens. It also explains the EthereumConnected and SiweAuthenticated roles for AuthorizeView, the SiweMessageService API and the claims structure.

The flow has the server create a SiweMessage with a random nonce, the client sign it with a wallet, and the server verify the signature against the claimed address before issuing a token or session. Optional sections cover NFT-gated access using ERC721BalanceEthereumUserService and smart contract wallet verification through ERC-1271 and ERC-6492. It is aimed at .NET developers building wallet-based login into Blazor applications.

Written from the project's SKILL.md and checked against it.

What it can do

  • Blazor Server SIWE setupRegisters the services and state provider needed for direct wallet signing in one process.
  • Blazor WASM with REST APIGenerates SIWE messages, authenticates signatures and issues JWT tokens from an API.
  • AuthorizeView rolesUses EthereumConnected and SiweAuthenticated roles to show or hide content.
  • NFT-gated accessRequires users to hold a specific NFT before authentication is allowed.
  • Smart contract wallet verificationVerifies signatures from smart contract wallets via ERC-1271 and ERC-6492.
  • SiweMessageService APIBuilds messages, checks signatures and timing, and invalidates sessions on logout.
  • Claims structureDefines name, address and role claims for authenticated wallet users.

What you need

  • .NET
  • NuGet packages Nethereum.Siwe and Nethereum.Blazor
  • Nethereum.Templates.Pack for the optional starter template

Try asking

  • Add SIWE wallet login to my Blazor Server app
  • Set up a Blazor WASM API that issues a JWT after a wallet signature
  • Restrict a Blazor page so only NFT holders can sign in

Good to know

  • Tokens written by version 7.0 are not accepted, so users must sign in again after upgrading.
  • NFT gating and smart contract wallet checks need a Web3 instance and contract address.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/nethereum-skills/skills/blazor-authentication/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to blazor-authentication

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

blazor-authentication: common questions

Does this work with Blazor WASM as well as Blazor Server?

Yes. The source covers Blazor Server with direct signing and Blazor WASM with a REST API that issues JWT tokens.

Can it verify signatures from smart contract wallets?

Yes. Passing a Web3 instance to SiweMessageService enables ERC-1271 checks, and the source says ERC-6492 is supported for counterfactual wallets.

How does it limit replay of a sign-in message?

The service stores a nonce in the session and checks that the signed message matches it. It also checks the NotBefore and ExpirationTime window, and the examples use a 10 minute expiry.

How do I install blazor-authentication?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is blazor-authentication free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is blazor-authentication safe to use?

It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to blazor-authentication?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

blazor-authentication Install

Add to stack

Loading.