And further there is following code as well for get authorization handlers /** * Gets the configured authorization handler at identity.xml * * @return Configured authorization handler */ public static AuthorizationHandler getAuthorizationHandler() {
AuthorizationHandler authorizationHandler = null; Object obj = ConfigurationFacade.getInstance().getExtensions() .get(FrameworkConstants.Config.QNAME_EXT_AUTHORIZATION_HANDLER); if (obj instanceof AuthorizationHandler) { authorizationHandler = (AuthorizationHandler) obj; } return authorizationHandler; } Thanks & Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Mar 16, 2017 at 5:53 PM, Danushka Fernando <danush...@wso2.com> wrote: > Hi All > > In Framework utils I see following method. > > /** > * Gets the configured post authentication handler at identity.xml > * > * @return Configured post authentication handler > */ > public static PostAuthenticationHandler getPostAuthenticationHandler() { > > PostAuthenticationHandler postAuthenticationHandler = null; > Object obj = ConfigurationFacade.getInstance().getExtensions() > .get(FrameworkConstants.Config.QNAME_EXT_AUTHORIZATION_HANDLER); > > if (obj instanceof PostAuthenticationHandler) { > postAuthenticationHandler = (PostAuthenticationHandler) obj; > } else { > postAuthenticationHandler = > DefaultPostAuthenticationHandler.getInstance(); > } > return postAuthenticationHandler; > } > > But value of the constant "QNAME_EXT_AUTHORIZATION_HANDLER" is > AuthorizationHandler not PostAuthenticationHandler. And I see another > constant right below that "QNAME_EXT_POST_AUTHENTICATION_HANDLER" which > is not used. And the the default configuration have an element under > AuthorizationHandler tag which is extended from AuthorizationHandler > interface. Is this a bug? > > Thanks & Regards > Danushka Fernando > Senior Software Engineer > WSO2 inc. http://wso2.com/ > Mobile : +94716332729 <+94%2071%20633%202729> >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev