Skip to content
This repository has been archived by the owner. It is now read-only.

dotkernel/dot-controller-plugin-authentication

2.0
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

dot-controller-plugin-authentication

Authentication controller plugin.

OSS Lifecycle GitHub license

NOTE

dot-controller-plugin-authentication is archived and will receive no further development!

Installation

Run the following command

$ composer require dotkernel/dot-controller-plugin-authentication

This will also install package dotkernel/dot-controller and dotkernel/dot-authentication as dependencies Enable the module by merging the ConfiProvider output to your application's configuration, to register the services defined by this module.

Usage

In any controller, you can access this plugin by calling

$this->authentication()->...

This plugin defines 2 methods you can use in your controllers to check for the currently authenticated identity.

$this->authentication()->hasIdentity()

Returns a boolean value indicating if there is an authenticated identity or a guest identity

$this->authentication()->getIdentity()

Returns the current identity as an hydrated object, as defined in the authentication module

About

DotKernel authentication controller plugin component

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages