Package org.auraframework.def

Examples of org.auraframework.def.DefinitionAccess.requiresAuthentication()


    <D extends Definition> String hasAccess(DefDescriptor<?> referencingDescriptor, D def,
            Cache<String, String> accessCheckCache) {
        // If the def is access="global" or does not require authentication then anyone can see it
        DefinitionAccess access = def.getAccess();
        if (access.isGlobal() || !access.requiresAuthentication()) {
            return null;
        }

        ConfigAdapter configAdapter = Aura.getConfigAdapter();
        String referencingNamespace = null;
View Full Code Here


     * Verify authentication values specified with access attribute.
     * @throws Exception
     */
    public void testParseSpecifiedAuthentication()throws Exception{
        DefinitionAccess access = definitionParser.parseAccess(null, "authenticated");
        assertTrue(access.requiresAuthentication());
       
        access = definitionParser.parseAccess(null, "unauthenticated");
        assertFalse(access.requiresAuthentication());
       
        //Case insensitive too
View Full Code Here

    public void testParseSpecifiedAuthentication()throws Exception{
        DefinitionAccess access = definitionParser.parseAccess(null, "authenticated");
        assertTrue(access.requiresAuthentication());
       
        access = definitionParser.parseAccess(null, "unauthenticated");
        assertFalse(access.requiresAuthentication());
       
        //Case insensitive too
        access = definitionParser.parseAccess(null, "AUTHENTICATED");
        assertTrue(access.requiresAuthentication());
       
View Full Code Here

        access = definitionParser.parseAccess(null, "unauthenticated");
        assertFalse(access.requiresAuthentication());
       
        //Case insensitive too
        access = definitionParser.parseAccess(null, "AUTHENTICATED");
        assertTrue(access.requiresAuthentication());
       
        //No authentication specified
        access = definitionParser.parseAccess(null, "PRIVATE");
        assertTrue(access.requiresAuthentication());
       
View Full Code Here

        access = definitionParser.parseAccess(null, "AUTHENTICATED");
        assertTrue(access.requiresAuthentication());
       
        //No authentication specified
        access = definitionParser.parseAccess(null, "PRIVATE");
        assertTrue(access.requiresAuthentication());
       
        //Both authentication values specified
        try{
            definitionParser.parseAccess(null, "AUTHENTICATED, UNAUTHENTICATED");
            fail("Should not allow to specify both authentication values.");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.