Package org.apache.sling.auth.openid.impl

Examples of org.apache.sling.auth.openid.impl.OpenIDAuthenticationHandler


                one(request).getServerPort();
                will(returnValue(port_1));
            }
        });

        final OpenIDAuthenticationHandler handler1 = new OpenIDAuthenticationHandler();
        // http/80
        assertEquals(HTTP + "://" + NAME, handler1.getBaseUrl(request));
        // https/443
        assertEquals(HTTPS + "://" + NAME, handler1.getBaseUrl(request));
        // http/999
        assertEquals(HTTP + "://" + NAME + ":" + port999,
            handler1.getBaseUrl(request));
        // https/999
        assertEquals(HTTPS + "://" + NAME + ":" + port999,
            handler1.getBaseUrl(request));
        // any/80
        assertEquals(ANY + "://" + NAME + ":" + port80,
            handler1.getBaseUrl(request));
        // any/443
        assertEquals(ANY + "://" + NAME + ":" + port443,
            handler1.getBaseUrl(request));
        // any/999
        assertEquals(ANY + "://" + NAME + ":" + port999,
            handler1.getBaseUrl(request));
        // http/-1
        assertEquals(HTTP + "://" + NAME, handler1.getBaseUrl(request));
        // https/-1
        assertEquals(HTTPS + "://" + NAME, handler1.getBaseUrl(request));
        // any/-1
        assertEquals(ANY+ "://" + NAME, handler1.getBaseUrl(request));
    }
View Full Code Here

TOP

Related Classes of org.apache.sling.auth.openid.impl.OpenIDAuthenticationHandler

Copyright © 2018 www.massapicom. 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.