jasny / Auth
Authentication, authorization and access control for PHP
Stars: ✭ 80
Projects that are alternatives of or similar to Auth
Stormpath Sdk Php
PHP SDK for the Stormpath User Management and Authentication REST+JSON API
Stars: ✭ 72 (-10%)
Mutual labels: authentication, authorization
Cas
Apereo CAS - Enterprise Single Sign On for all earthlings and beyond.
Stars: ✭ 9,154 (+11342.5%)
Mutual labels: authentication, authorization
Fullstack Apollo Express Postgresql Boilerplate
💥 A sophisticated GraphQL with Apollo, Express and PostgreSQL boilerplate project.
Stars: ✭ 1,079 (+1248.75%)
Mutual labels: authentication, authorization
Matrixauth
High-performance lightweight distributed permission system. 高性能轻量级分布式权限系统。
Stars: ✭ 41 (-48.75%)
Mutual labels: authentication, authorization
Spring Boot Oauth2 Jwt Swagger Ui
Spring Boot , OAuth 2 , JWT (Json Web Token) and Swagger UI
Stars: ✭ 77 (-3.75%)
Mutual labels: authentication, authorization
Gortas
Gortas is an API based authentication service, allows adding authentication to your site or service with minimum efforts.
Stars: ✭ 48 (-40%)
Mutual labels: authentication, authorization
Grpc Auth Example
Examples of client authentication with gRPC
Stars: ✭ 65 (-18.75%)
Mutual labels: authentication, authorization
Typescript Seed
Typescript Seed Project (Angular, Hapi, Cookie Auth, TypeORM, Postgres)
Stars: ✭ 12 (-85%)
Mutual labels: authentication, authorization
Spring Boot Webflux Jjwt
Example Spring Boot and WebFlux (Reactive Web) with Spring Security and JWT for token Authentication and Authorization
Stars: ✭ 71 (-11.25%)
Mutual labels: authentication, authorization
Ziggurat foundations
Framework agnostic set of sqlalchemy classes that make building applications that require permissions an easy task.
Stars: ✭ 67 (-16.25%)
Mutual labels: authentication, authorization
Authex
Authex is an opinionated JWT authentication and authorization library for Elixir.
Stars: ✭ 73 (-8.75%)
Mutual labels: authentication, authorization
Charon
Authorization and authentication service.
Stars: ✭ 79 (-1.25%)
Mutual labels: authentication, authorization
Authomatic
Simple yet powerful authorization / authentication client library for Python web applications.
Stars: ✭ 962 (+1102.5%)
Mutual labels: authentication, authorization
Laravel5.7 Vue Cli3 Boilerplate
Boilerplate / Starter kit. Laravel 5.7, Vue CLI 3 — Authentication with Email Verification. REST API.
Stars: ✭ 52 (-35%)
Mutual labels: authentication, authorization
Access
Ponzu Addon to manage API access grants and tokens for authentication
Stars: ✭ 13 (-83.75%)
Mutual labels: authentication, authorization
Next Authentication
Authentication & Authorization library for the Next.js framework
Stars: ✭ 55 (-31.25%)
Mutual labels: authentication, authorization
Rbac
Hierarchical Role Based Access Control for NodeJS
Stars: ✭ 857 (+971.25%)
Mutual labels: authentication, authorization
React Firebase Authentication
🔥 Boilerplate Project for Authentication with Firebase in React.
Stars: ✭ 863 (+978.75%)
Mutual labels: authentication, authorization
Nim Httpauth
HTTP Authentication library for Nim
Stars: ✭ 67 (-16.25%)
Mutual labels: authentication, authorization
Brandenburg
Laravel Authentication Package
Stars: ✭ 79 (-1.25%)
Mutual labels: authentication, authorization
Jasny Auth
Authentication, authorization and access control for PHP.
Features
- Multiple authorization strategies, like groups (for acl) and levels.
- Authorization context (eg. "is the user an admin of this team").
- PSR-14 events for login and logout.
- PSR-15 middleware for access control.
- Session invalidation, explicit or implicit (eg. after password change).
- Multi-factor authentication support.
- JWT and Bearer authentication support.
- Confirmation tokens for sign up confirmation and forgot-password.
- PSR-3 logging of interesting events.
- Customizable to meet the requirements of your application.
Installation
Install using composer
composer require jasny/auth
Usage
Auth
is a composition class. It takes an authz, storage, and optionally a confirmation service.
use Jasny\Auth\Auth;
use Jasny\Auth\Authz\Levels;
$levels = new Levels(['user' => 1, 'moderator' => 10, 'admin' => 100]);
$auth = new Auth($levels, new AuthStorage());
session_start();
$auth->initialize();
// Later...
if (!$auth->is('admin')) {
http_response_code(403);
echo "Access denied";
exit();
}
The Auth
service isn't usable until it's initialized. This should be done after the session is started.
session_start();
$auth->initialize();
Documentation
- Home
- Setup
- Authentication
- Authorization
- Sessions
- Middleware (for access control)
-
MFA (Multi-factor authentication)
- TOTP (aka Google authenticator)
-
Confirmation
- Random token
- Hashids
- Examples
- Logging
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].