Example Apps
Because Auth.it is based on Keycloak, applications can be secured using any OpenID Connect (OIDC) library that works with Keycloak, which is a standards-compliant server implementation.
On this page, we have curated a set of libraries that can help you protect your application using the language and framework of your choice. For some libraries, we also provide sample projects and articles to help you get started.
Frontend / SPA
For almost all pure frontend frameworks and single-page applications (SPAs), we recommend using OIDC-SPA. It is a fully standards-compliant implementation widely used by many applications. It is developed by a close collaborator of Auth.it and Phase Two (the creator of Auth.it).
Configuration information for your library can be found in the Frontend Application section of the Applications view in the Auth.it Dashboard.
- Library: OIDC-SPA
- Sample project: https://github.com/auth-it/starter-app-react-router
- Article: Quick Start Guide
Backend / server-side
There are many possible backend languages and frameworks, and most have a mature OIDC library that supports the standard.
Configuration details for your library can be found in the Backend Application section of the Applications view in the Auth.it Dashboard.
Ruby
Ruby on Rails
- Library: OmniAuth
Python
Django
- Library: Mozilla Django OIDC
- Sample project: https://github.com/p2-inc/examples/tree/main/frameworks/django
- Article: https://mozilla-django-oidc.readthedocs.io/en/stable/installation.html
Node
Express
- Library: express-openid-connect
- Sample project: https://github.com/auth0/express-openid-connect/tree/master/examples
- Article: https://auth0.com/blog/auth0-s-express-openid-connect-sdk/
Java
Spring
- Library: Spring Security
- Article: https://www.baeldung.com/spring-security-openid-connect
Go
- Library: go-oidc
- Sample project: https://github.com/coreos/go-oidc/tree/v3/example
Do you know a library or project that should be included here? Contact us to make a recommendation!