Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

64 Commits

Repository files navigation

Authorizer Examples

Example applications and integrations for Authorizer — the open-source, self-hosted authentication and authorization server.

Authorizer v2 server is configured entirely via CLI flags (no .env / OS env vars), e.g.

./authorizer \
--database-type sqlite --database-url authorizer.db \
--url http://localhost:8080 \
--jwt-type HS256 --jwt-secret <jwt-secret> \
--encryption-key "$(openssl rand -hex 32)" \
--client-id <client-id> --client-secret <client-secret> \
--admin-secret <admin-secret>

All of the above are required as of 2.4.0 — the server exits at boot if any is missing. --url is this server's own address (not the apps allowed to call it, which is --allowed-origins).

Examples

ExampleDescription
with-express-jsExpress.js middleware validating Authorizer JWTs with @authorizerdev/authorizer-js
with-gatsbyjsGatsby site with login and private routes using @authorizerdev/authorizer-react
with-nextjsNext.js (pages router) app with login, session cookie, and SSR profile page
with-nextjs-13Next.js 13 (app router) app with login, session cookie, and server-component profile page
with-reactCreate React App + React Router demo using @authorizerdev/authorizer-react
with-react-native-expoReact Native (Expo) OAuth2 PKCE flow with token refresh via @authorizerdev/authorizer-js
with-svelte-kitSvelteKit app using @authorizerdev/authorizer-svelte components
with-svelte-routingSvelte + svelte-routing app using @authorizerdev/authorizer-svelte
with-vanilla-jsPlain HTML/JS page using the authorizer-js UMD CDN build
with-vanilla-js-custom-uiCustom login UI (no components) built directly on authorizer-js
with-vueVue 3 app integrating Authorizer
with-goGo backend integration with Authorizer
with-pythonPython backend integration with Authorizer
with-m2m-client-credentialsMachine-to-machine auth using the OAuth2 client credentials grant
with-token-exchange-delegationRFC 8693 token exchange and delegation (act claim)
with-fga-permissionsFine-grained authorization (ReBAC) checks with the embedded OpenFGA engine
with-fga-advancedAdvanced FGA modeling: hierarchies, role grants, and exclusions
with-microservicesAuthorizer as the auth layer across multiple microservices
with-openid-connectStandard OpenID Connect integration against Authorizer's OIDC endpoints
with-agent-delegationDelegating scoped access to AI agents with audited delegation chains
with-agent-permissionsPer-agent FGA permissions intersected with the delegating user's
with-claude-agentsTwo real Claude Agent SDK agents (DevOps assistant + infra agent) delegating and authorizing over HTTP, with a fail-closed OpenFGA permission gate
with-mcpAuthorizer as the OAuth 2.1 authorization server protecting an MCP server (RFC 9728 + RFC 8707)
with-a2a-agent-cardA2A (Agent2Agent) v1.0 Agent Card backed by Authorizer as the OAuth2 authorization server
with-k8s-tokenreviewKubernetes TokenReview-based workload authentication
with-spiffeSPIFFE/SPIRE workload identity integration
with-org-sso-oidcOrganization SSO via an upstream OIDC identity provider
with-org-samlOrganization SSO via SAML
with-scimSCIM user/group provisioning against Authorizer

SDK versions

About

List of examples on how to use authorizer with various technologies out there.

Topics

Resources

Stars

11 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages