cartalyst / sentinel

A framework agnostic authentication & authorization system.
BSD 3-Clause "New" or "Revised" License
1.52k stars 240 forks source link

[Assessment] Sentinel #82

Closed drsii closed 9 years ago

drsii commented 9 years ago

Assessment Phase Q3 2015

Architect: @drsii Package Lead: @suwardany Quality Control: @brunogaspar Member Advocate: Position Open

Assessment is a member driven review of package issues and proposals. We weigh the pros and cons, discuss features, and formulate a general plan for the next major.minor version. Discussion is extended for 15 days.

Disclaimer: We're extending this period outside of our member only repositories. With the recent decision to open source Sentinel we find there may be further value, insight, and opportunity.

Help Support Sentinel version 3

http://igg.me/at/sentinel-open-source

Sentinel v3 WIP

(1) Premium add-ons

API

Sentinel

Registration

Detailed functionalities

Add-ons

Creating an add-on

Add-ons must implement Cartalyst\Sentinel\Addons\AddonInterface

use Cartalyst\Sentinel\Addons\AddonInterface;

class ActivationsAddon implements AddonInterface
{
    public function getId()
    {
        return 'activations';
    }
}

Registering an addon

Addons can be registered by instantiating the addon class and passing it to the registerAddon method.

use Cartalyst\Sentinel\Addons\Activations\Activation;

$activations = new ActivationAddon;

Sentinel::registerAddon($activations);

Using an addon

Calling the addon identifier on Sentinel returns the addon class.

Sentinel::activations()->activate($user);

Sentinel::social()->getAuthorizationUrl('facebook', 'http://example.dev/oauth/callback');

Sentinel::uniquePasswords()->getAuthorizationUrl('facebook', 'http://example.dev/oauth/callback');
iolson commented 9 years ago

Possibly a Symfony 2 and Lumen official implentations? Just a thought to go along with the Laravel implentation. As said in your Sentinel campaign would be to move integrations into their own bridge packages.

brunogaspar commented 9 years ago

Lumen, yes. Symfony, not really sure, as it's quite overwhelming to write those bundle packages heh

drsii commented 9 years ago

Assessment period is reclosed.