Skip to content

brakmic/keycloak-pkce-cpp

Repository files navigation

Keycloak PKCE Authentication Library

Overview

A C++ library implementing OAuth2 PKCE (Proof Key for Code Exchange) authentication flow for secure client-side authentication with Keycloak servers.

Key Features

  • Full OAuth2 PKCE flow implementation
  • TLS/SSL support with certificate management
  • Cookie-based session handling
  • State management for CSRF protection
  • Proxy support for development environments
  • Thread-safe operations
  • Comprehensive error handling

Language Support

  • Core implementation in modern C++ (C++23)
  • C API wrapper for language interoperability (C99)
  • Language bindings available for:
    • Python (via ctypes)
    • Lua (via LuaJIT FFI)

Index

1. Integration Guides

4. Technical Documentation

5. Development