MaximeRainville\Auth0\Extensions\LoginHandlerAuthorizationExtension
Extension to the Auth0 Login Handler to read and update permission for the provided user.
This is designed to work with the
[Auth0 Authorization Extension](https://auth0.com/docs/extensions/authorization-extension/v2)
Synopsis
class LoginHandlerAuthorizationExtension
extends Extension
{
- // members
- protected $namespace;
- // methods
- public void __construct()
- public bool allowUserToRegister()
- public void updateMember()
- protected Group getParentGroup()
Hierarchy
Extends
- SilverStripe\Core\Extension
Members
protected
- $namespace — string
Methods
protected
- getParentGroup() — Return a group that encapsulate all the individual groups.
public
- __construct() — LoginHandlerAuthorizationExtension constructor.
- allowUserToRegister() — We let Auth0 handle everything so we'll allow registration, if Auth0 is happy.
- updateMember() — Update the user's permission after they log in.