Package org.pac4j.oauth.client

Examples of org.pac4j.oauth.client.CasOAuthWrapperClient


    private static final String USERNAME = "leleuj";
   
    private static final String CAS_SERVER_URL = "http://casserverurl/oauth2.0";
   
    public void testClone() {
        final CasOAuthWrapperClient oldClient = new CasOAuthWrapperClient();
        oldClient.setCasOAuthUrl(CAS_SERVER_URL);
        oldClient.setSpringSecurityCompliant(true);
        final CasOAuthWrapperClient client = (CasOAuthWrapperClient) internalTestClone(oldClient);
        assertEquals(oldClient.getCasOAuthUrl(), client.getCasOAuthUrl());
        assertEquals(oldClient.isSpringSecurityCompliant(), client.isSpringSecurityCompliant());
    }
View Full Code Here


        assertEquals(oldClient.getCasOAuthUrl(), client.getCasOAuthUrl());
        assertEquals(oldClient.isSpringSecurityCompliant(), client.isSpringSecurityCompliant());
    }
   
    public void testMissingCasOAuthUrl() {
        final CasOAuthWrapperClient client = (CasOAuthWrapperClient) getClient();
        client.setCasOAuthUrl(null);
        TestsHelper.initShouldFail(client, "casOAuthUrl cannot be blank");
    }
View Full Code Here

    }
   
    @SuppressWarnings("rawtypes")
    @Override
    protected Client getClient() {
        final CasOAuthWrapperClient casOAuthWrapperClient = new CasOAuthWrapperClient();
        casOAuthWrapperClient.setKey("my_key");
        casOAuthWrapperClient.setSecret("my_secret");
        casOAuthWrapperClient.setCallbackUrl(PAC4J_BASE_URL);
        casOAuthWrapperClient.setCasOAuthUrl("http://localhost:8080/cas/oauth2.0");
        return casOAuthWrapperClient;
    }
View Full Code Here

TOP

Related Classes of org.pac4j.oauth.client.CasOAuthWrapperClient

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.