Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Using RouteGuard in Apigility #306

Open
metanav opened this issue Sep 15, 2015 · 0 comments
Open

Using RouteGuard in Apigility #306

metanav opened this issue Sep 15, 2015 · 0 comments

Comments

@metanav
Copy link

metanav commented Sep 15, 2015

I have integrated zfc-rbac with Apigility. The issue is: Apigility authentication occurs at EVENT_ROUTE (priority -50) which is after the default priorty -5 of the RouteGuard so no identity is available for RouteGuard to do job. I read the docs and it says I can subclass to override EVENT_NAME or EVENT_PRIORITY which are class constants. To subclass RouteGuard I had to copy the RouteGuardFactory code which is not reusable at all. Is there any other way to override EVENT_PRIORITY constant or make it configurable? What is the logic behind making them const instead of protected variable?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant