Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Simple authentication service extension to authenticate user by config.ini credentials, possible to extend more.

License

Notifications You must be signed in to change notification settings

mvccore/ext-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MvcCore Extension - Basic Authentication

Latest Stable Version License PHP Version

Simple authentication service, only to signin/signout an user. Service use credentials defined in system config.ini by default. Service is very easy to extend and configure for new user model class to authenticate the user by any database credentials or anything else and the same is possible for sign in/out controller or form class to use any registration implementation you need.

Installation

composer require mvccore/ext-auth

Usage

Add this to Bootstrap.php or to very application beginning, before application routing.

\MvcCore\Ext\Auth::GetInstance()->Init();

To translate your signin and signout form visible elements, use:

\MvcCore\\Ext\Auth::GetInstance()->Init()->SetTranslator(function ($key, $lang = NULL) {
	// your custom translator model/service:
	return \App\Models\Translator::GetInstance()->Translate($key, $lang);
});

About

Simple authentication service extension to authenticate user by config.ini credentials, possible to extend more.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages