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

Add ability to customize guard responses by moudule #6

Closed
jclausen opened this issue Oct 10, 2018 · 1 comment
Closed

Add ability to customize guard responses by moudule #6

jclausen opened this issue Oct 10, 2018 · 1 comment

Comments

@jclausen
Copy link

If a module implements cbguard, the module should have the ability to customize the responses for authorization failures, when within the modules routing namespace.

Allow for nested cbguard settings within each module's settings.

Example:

settings = {
            "cbguard" : {
                "authenticationService"           = "SecurityService@myModule",
                "authenticationOverrideEvent"     = "myModule:Main.onAuthenticationFailure",
                "authenticationAjaxOverrideEvent" = "myModule:api.v1.BaseAPIHandler.onAuthenticationFailure",
                "authorizationOverrideEvent"      = "myModule:Main.onAuthorizationFailure",
                "authorizationAjaxOverrideEvent"  = "myModule:api.v1.BaseAPIHandler.onAuthorizationFailure"
            }
}

If a customized module setting is not detected, then the top-level module settings would apply.

@elpete
Copy link
Collaborator

elpete commented Sep 5, 2019

Added in 3.0.0

@elpete elpete closed this as completed Sep 5, 2019
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

2 participants