Code Examples
Our code examples show how to secure access to your APIs, integrate OAuth flows into UIs, and extend the capabilities of the Curity Identity Server via plugins.

Open Policy Agent Authorization Manager
Implementing an Open Policy Agent (OPA) Authorization Manager
OpenID Connect Client with .NET
A website example in .NET that illustrates how to integrate with OpenID Connect.
.NET OAuth Agent
A .NET OAuth Agent that enables strong browser security for SPAs
Kotlin OAuth Agent
A Kotlin OAuth Agent that enables strong browser security for SPAs
Mobile Web SSO
How to achieve SSO when navigating from a mobile app to a web view or browser
XACML Authorization Manager
Implementing a XACML Authorization Manager
Hypermedia Authentication API React Demo
A React demo application using the Hypermedia Authentication API
Securing API Events using JWTs
Secure and reliable event based messaging with Apache Kafka and the Curity Identity Server
Next.js OAuth Agent
An OAuth Agent that enables strong browser security for SPAs, implemented using Next.js
Azure API Management OAuth Proxy Policy
Implementing the OAuth Proxy in Azure with an API Management Policy
API Access via JWT Assertions
Designing APIs whose clients must authenticate with strong security via client assertions
AWS API Gateway OAuth Proxy Module
An implementation of the Token Handler's OAuth Proxy module for AWS API Gateway.
Token Handler Deployment Example
Details of how the code example and its token handler is deployed
Entrust Authenticator
An authenticator that allows an integration of the Curity Identity Server with the Entrust IDaaS.
Cloudflare Worker OAuth Proxy Module
An implementation of the Token Handler's OAuth Proxy module for Cloudflare Workers.
NGINX OAuth Proxy Module
An OAuth proxy module that runs in an NGINX reverse proxy, to translate secure cookies to access tokens
NGINX Lua OAuth Proxy Plugin
An OAuth proxy plugin that can run in a LUA enabled reverse proxy to translate secure cookies to access tokens
BehavioSec Authenticator
An authenticator that uses behavioral data as a second factor to authenticate users.
Financial-Grade OAuth Agent
An OAuth Agent that enables financial-grade security for SPAs
Node.js OAuth Agent
A Node.js and Express OAuth Agent that enables strong browser security for SPAs