All Projects → agungsugiarto → codeigniter4-authentication

agungsugiarto / codeigniter4-authentication

Licence: MIT license
The codeigniter4\authentication component provides an API for authentication and includes concrete authentication adapters for common use case scenarios.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to codeigniter4-authentication

PiggyAuth
Safe & feature-rich auth plugin. Project has been discontinued
Stars: ✭ 33 (-2.94%)
Mutual labels:  auth
TwitchAuth
Unreal Engine 4 Plugin for In-Game Twitch Authentication.
Stars: ✭ 21 (-38.24%)
Mutual labels:  auth
codeigniter4-ajax-crud
Example CodeIgniter 4 ajax crud with serverside datatable.
Stars: ✭ 63 (+85.29%)
Mutual labels:  codeigniter4
mod authnz jwt
An authentication module for Apache httpd using JSON Web Tokens
Stars: ✭ 74 (+117.65%)
Mutual labels:  auth
logto
🧑‍🚀 Logto helps you build the sign-in, auth, and user identity within minutes. We provide an OIDC-based identity service and the end-user experience with username, phone number, email, and social sign-in, with extendable multi-language support.
Stars: ✭ 3,421 (+9961.76%)
Mutual labels:  auth
Opux
Opux is a Discord bot for EVEOnline
Stars: ✭ 13 (-61.76%)
Mutual labels:  auth
sqlx-adapter
Asynchronous casbin adapter for mysql, postgres, sqlite based on sqlx-rs
Stars: ✭ 27 (-20.59%)
Mutual labels:  auth
laravel-nuxt
Laravel 5.6 + Nuxt 1.4: Auth Starter (SSR, SPA, Socialite)
Stars: ✭ 19 (-44.12%)
Mutual labels:  auth
svelte-commerce
Svelte ecommerce - Headless, Authentication, Cart & Checkout, TailwindCSS, Server Rendered, Proxy + API Integrated, Animations, Stores, Lazy Loading, Loading Indicators, Carousel, Instant Search, Faceted Filters, Typescript, Open Source, MIT license. 1 command deploy to your own server, 1 click deploy to netlify.
Stars: ✭ 695 (+1944.12%)
Mutual labels:  auth
auth-ajax
Auth token handling for Polymer
Stars: ✭ 15 (-55.88%)
Mutual labels:  auth
amplify-material-ui
A Material-UI based implementation of aws amplify
Stars: ✭ 32 (-5.88%)
Mutual labels:  auth
iron-session
🛠 Node.js stateless session utility using signed and encrypted cookies to store data. Works with Next.js, Express, NestJs, Fastify, and any Node.js HTTP framework.
Stars: ✭ 1,729 (+4985.29%)
Mutual labels:  auth
Flask-GraphQL-Auth
(UNMAINTAINED. FEEL FREE TO FORK) 🐍A Pythonic way to provide JWT authentication for Flask-GraphQL
Stars: ✭ 64 (+88.24%)
Mutual labels:  auth
react-auth-kit
Easily manage Authentication state of users in React-based Apps using Hooks and Higher-order components
Stars: ✭ 177 (+420.59%)
Mutual labels:  auth
firebase auth oauth
A Flutter plugin that makes it easy to perform OAuth sign in flows using FirebaseAuth.
Stars: ✭ 28 (-17.65%)
Mutual labels:  auth
worker-auth-providers
worker-auth-providers is an open-source providers to make authentication easy with workers. Very lightweight script which doesn't need a lot of dependencies. Plug it with any framework or template of workers.
Stars: ✭ 85 (+150%)
Mutual labels:  auth
remix-auth
Simple Authentication for Remix
Stars: ✭ 929 (+2632.35%)
Mutual labels:  auth
aws-mobilehub-helper-ios
ARCHIVED: Use https://github.com/aws/aws-sdk-ios/
Stars: ✭ 41 (+20.59%)
Mutual labels:  auth
jwt-auth
JSON Web Token Authentication for Thinkphp
Stars: ✭ 113 (+232.35%)
Mutual labels:  auth
capacitor-firebase-authentication
⚡️ Capacitor plugin for Firebase Authentication.
Stars: ✭ 67 (+97.06%)
Mutual labels:  auth

CodeIgniter4 Authentication

tests Latest Stable Version Total Downloads Latest Unstable Version License

About

The codeigniter4\authentication component provides an API for authentication and includes concrete authentication adapters for common use case scenarios.

Upgrade from v1.x to 2.x

Composer Dependencies

You should update the following dependencies in your application's composer.json file:

agungsugiarto/codeigniter4-authentication to ^2.0

User Entity

Open class App\Entities\User add interface and trait to implement.

namespace Fluent\Auth\Entities;

- use CodeIgniter\Entity;
+ use CodeIgniter\Entity\Entity;
use Fluent\Auth\Contracts\AuthenticatorInterface;
+ use Fluent\Auth\Contracts\AuthorizableInterface;
use Fluent\Auth\Contracts\HasAccessTokensInterface;
use Fluent\Auth\Contracts\ResetPasswordInterface;
use Fluent\Auth\Contracts\VerifyEmailInterface;
use Fluent\Auth\Facades\Hash;
use Fluent\Auth\Traits\AuthenticatableTrait;
use Fluent\Auth\Traits\AuthorizableTrait;
use Fluent\Auth\Traits\CanResetPasswordTrait;
use Fluent\Auth\Traits\HasAccessTokensTrait;
use Fluent\Auth\Traits\MustVerifyEmailTrait;

class User extends Entity implements
    AuthenticatorInterface,
+   AuthorizableInterface,
    HasAccessTokensInterface,
    ResetPasswordInterface,
    VerifyEmailInterface
{
    use AuthenticatableTrait;
+   use AuthorizableTrait;
    use CanResetPasswordTrait;
    use HasAccessTokensTrait;
    use MustVerifyEmailTrait;
}

AuthServiceProvider

Open App\Providers\AuthServiceProvider

namespace Fluent\Auth;

+ use Fluent\Auth\Facades\Gate;
use Fluent\Auth\AbstractServiceProvider;

class AuthServiceProvider extends AbstractServiceProvider
{
+   /**
+    * The policy mappings for the application.
+    *
+    * @var array<class-string, class-string>
+    */
+   protected static $policies = [];

    /**
     * {@inheritdoc}
     */
    public static function register()
    {
+        static::registerPolicies();
    }
}

Documentation

Community Authentication Guards

Authentication Demo

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Contributions are very welcome.

License

Released under the MIT License, see LICENSE.

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].