SpoutDev/Hub — pull request #1 by greatman (2013-08-25 03:30:20+00:00)
Title: Play-authenticate with ACL.

Based the Hub on the play-authenticate plugin. Using the base example pr...

Currently offers : email/pass login, twitter/facebook/openid auth.

Added a ACL system on the same layout as XenForo (Not set, Yes, Definite no) based on groups (SecurityRole).
Not set: does nothing
Yes: Allow the page to be shown
Definite no: Blocks the page from being shown even if another group allows it.

To use that system, you need to use @Dynamic(value = "name") on top of a method or controller class (See Application.restricted for a example). Name being the security name for that page.

This is handled in the GROUP_ACL class. "path" being the value in the dynamic annotation, "security_role_id" the group that have that permission and "permission" the actual permission (See the ACLValue enum for the values)

Signed-off-by: William Lebel