bc-gov-iam

Integrate BC Government OIDC authentication for React SPAs and .NET APIs.

7|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/rloisell/rl-agents-n-skills --skill bc-gov-iam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bc-gov-iam
Source: https://github.com/rloisell/rl-agents-n-skills/tree/main/bc-gov-iam
Command: npx skills add https://github.com/rloisell/rl-agents-n-skills --skill bc-gov-iam

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides practical guidance and implementation patterns to integrate BC Government identity providers (DIAM and Common SSO) using OIDC and Keycloak so applications can perform secure authentication and token-based authorization without ad-hoc setup mistakes.

Core Features & Use Cases

  • OIDC PKCE for SPAs: Steps and configuration for PKCE S256 flow using react-oidc-context and oidc-client-ts.
  • .NET JWT validation and API protection: Recommended JwtBearer setup, token validation parameters, and claim extraction snippets.
  • Keycloak client registration and backchannel logout: Client settings for public and confidential clients and a backchannel logout handler pattern.
  • Operational guidance: Recommended Vault path for client secrets, common pitfalls, and troubleshooting for silent renew and audience mapping.
  • Use Cases: Secure a React SPA with Common SSO, configure a confidential API with DIAM Keycloak, and handle token refresh and logout across services.

Quick Start

Configure your React SPA to use oidc-client-ts with PKCE against loginproxy.gov.bc.ca and provide the oidcConfig, callback page, silent renew entry, and corresponding .NET JwtBearer settings for the API.

Frequently Asked Questions about bc-gov-iam

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure BC Government OIDC authentication for a React SPA?

BC Government OIDC authentication for a React SPA is configured using oidc-client-ts and react-oidc-context, enforcing the PKCE S256 flow to securely authenticate against the Common SSO or DIAM realms via loginproxy.gov.bc.ca.

How do I set up .NET JWT validation for a DIAM Keycloak API?

.NET JWT validation for a DIAM Keycloak API requires configuring JwtBearer authentication with specific token validation parameters and claim extraction to protect endpoints and validate access tokens issued by the BC Government identity provider.

Does BC Gov Common SSO support backchannel logout for confidential clients?

Yes, BC Gov Common SSO supports backchannel logout for confidential clients by providing a specific handler pattern and Keycloak client registration settings to manage token revocation and session termination across services.

Where should I store Keycloak confidential client secrets for BC Government apps?

Keycloak confidential client secrets for BC Government apps should be stored in Vault, using a recommended Vault path to securely manage credentials and avoid ad-hoc setup mistakes during deployment.

Why is silent renew not working with oidc-client-ts in my React SPA?

Silent renew issues with oidc-client-ts in a React SPA often stem from misconfigured OIDC settings or audience mapping; troubleshooting involves verifying your silent renew entry point and token validation parameters against the Keycloak client configuration.