cbAuth
  • Introduction
  • What's New
  • Installation and Usage
  • Authentication Service
  • IUserService
  • IAuthUser
  • Customization Options
  • Interception points
  • External links
    • cbSecurity
    • cbGuard
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
Export as PDF

Introduction

NextWhat's New

Last updated 5 years ago

Was this helpful?

Authentication is tedious. Many projects need some sort of authentication system. And in many of these projects you will basically start from scratch. That's why cbauth was created.

cbauth is a library that handles creating user sessions for your app including authenticating users, logging users in and out, and retrieving the currently authenticated user. It is customizable to plug in to your existing authentication method and session storage.

cbauth is designed to be customized for existing applications. As such, it requires some work to configure correctly. If you are starting a new project and would like this configuration done for you check out the pre-configured application templates on ForgeBox like and .

These are some of the methods you can use in your project:

auth.authenticate( username, password );
auth.isLoggedIn();
auth.getUser();
auth.logout();

While cbauth manages user sessions, it doesn't protect handlers or actions from being accessed by logged out our unauthorized users. This part of the job is left to libraries such as or .

quick-with-auth
quick-tailwind-inertia
cbsecurity
cbguard