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

keycloak-auth-services

Skill by NikiforovAll

Implementation guide for the Keycloak.AuthServices .NET library. It covers JWT Bearer and OIDC authentication, RBAC, resource protection, Admin and Protection API SDKs, and .NET Aspire and OpenTelemetry tooling.

  • Score 63
  • 672 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install keycloak-auth-services

Built from the published package, never by AI.

git clone --depth 1 https://github.com/NikiforovAll/keycloak-authorization-services-dotnet /tmp/keycloak-authorization-services-dotnet && mkdir -p ~/.claude/skills && cp -r /tmp/keycloak-authorization-services-dotnet/skills/keycloak-auth-services ~/.claude/skills/keycloak-auth-services

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

Step-by-step: install keycloak-auth-services in Claude Code

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

About

This skill is an implementation guide for the Keycloak.AuthServices .NET library. It gives the assistant a quick start for choosing a task, such as JWT Bearer authentication for a Web API or OIDC for a Web App, and points to reference files for each area. The guide includes sample C# code for registering services, a Keycloak configuration section in appsettings.json, and a list of the library's NuGet packages.

The source covers authentication (JWT Bearer, OIDC, RFC 8414 server metadata discovery), authorization (RBAC, resource protection, an Authorization Server client, organizations and multi-tenancy), the Admin REST API and Protection API SDKs, and developer tooling such as .NET Aspire, project templates and OpenTelemetry. It is aimed at .NET developers who use Keycloak for identity and access control.

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

What it can do

  • JWT Bearer authenticationSets up JWT Bearer authentication for a Web API using AddKeycloakWebApiAuthentication.
  • OIDC authenticationCovers OpenID Connect setup for Web Apps, with reference material on the authentication options.
  • RBAC authorizationAdds realm and client role policies such as RequireRealmRoles and RequireResourceRoles.
  • Resource protectionAdds an Authorization Server client and the RequireProtectedResource endpoint filter.
  • Organization authorizationDescribes organization-based multi-tenancy, membership requirements and parameter resolvers.
  • Admin REST API SDKProvides hand-written and Kiota-generated clients for the Keycloak Admin REST API.
  • Protection API SDKCovers the UMA Protection API for managing resources, permissions and policies.
  • Token introspectionDescribes token introspection for lightweight tokens within the authorization guidance.
  • Developer toolingCovers .NET Aspire hosting, dotnet new templates and OpenTelemetry instrumentation.

What you need

  • .NET (dotnet CLI)
  • A Keycloak server
  • Keycloak.AuthServices NuGet packages

Try asking

  • Set up JWT Bearer authentication with Keycloak in my ASP.NET Core Web API
  • Add a role policy that requires the admin realm role in my .NET app
  • Show me how to protect a workspaces endpoint with Keycloak resource protection

Good to know

  • Covers the .NET library only
  • Configuration examples assume a local Keycloak server at localhost:8080

Security check

A

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

Checked automatically: skills/keycloak-auth-services/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to keycloak-auth-services

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

keycloak-auth-services: common questions

What does Keycloak.AuthServices do?

It is a .NET library for integrating Keycloak with ASP.NET Core, covering authentication, authorization, Admin and Protection API clients, and developer tooling. The skill is a guide to using it.

Does it support multi-tenancy?

The source lists organization-based multi-tenancy and organization authorization as covered topics, with a dedicated reference file.

Where is the Keycloak configuration stored?

The sample uses a Keycloak section in appsettings.json, with keys such as realm, auth-server-url, resource and credentials.secret. Both kebab-case and PascalCase are supported.

How do I install keycloak-auth-services?

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

Is keycloak-auth-services free?

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

Is keycloak-auth-services safe to use?

It scores 63 of 100. Grades: maintenance D, 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 keycloak-auth-services?

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

keycloak-auth-services Install

Add to stack

Loading.