Coder Social home page Coder Social logo

oidc-spa's Introduction

Openidconnect client for Single Page Applications

Documentation

An OIDC client tailored for Single Page Applications, particularly suitable for Vite projects.
This library is intended for scenarios such as integrating your application with Keycloak.

In straightforward terms, this library is ideal for those seeking to enable user login/registration in their web application. When used in conjunction with Keycloak (for example), it enables you to offer a modern and secure authentication experience with minimal coding effort. This includes options for signing in via Google, X, GitHub, or other social media platforms. We provide comprehensive guidance from beginning to end.

  • ๐ŸŽ“ Accessible to all skill levels; no need to be an OIDC expert.
  • ๐Ÿ› ๏ธ Easy to set up; eliminates the need for creating special /login /logout routes.
  • ๐ŸŽ›๏ธ Minimal API surface for ease of use.
  • โœจ Robust yet optional React integration.
  • ๐Ÿ“– Comprehensive documentation and project examples: End-to-end solutions for authenticating your app.
  • โœ… Best in class type safety: Enhanced API response types based on usage context.

Comparison with Existing Libraries

While oidc-client-ts serves as a comprehensive toolkit, our library aims to provide a simplified, ready-to-use adapter that will pass any security audit and that will just work out of the box on any browser.
We utilize oidc-client-ts internally but abstract away most of its intricacies.

Our library takes a modular approach to OIDC and React, treating them as separate concerns that don't necessarily have to be intertwined.
At its core, oidc-spa is a straightforward adapter that isn't tied to any specific UI framework, making it suitable for projects that enforce a strict separation of concerns between the core logic of the application and the UI.
Additionally, we provide adapters for React and starter projects for integration with react-router-dom or @tanstack/react-router.

Beside the fact that this lib only works with Keycloak it is also likely to be deprecated.

๐Ÿš€ Quick start

Heads over to the documentation website ๐Ÿ“˜!

Showcases

This library is powers the authentication of the following platforms:

Onyxia

image

The French Interministerial Base of Free Software

image

oidc-spa's People

Contributors

garronej avatar ddecrulle avatar kapii1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.