Package org.jasig.cas.support.openid.authentication.principal

Examples of org.jasig.cas.support.openid.authentication.principal.OpenIdService


        final MockHttpServletRequest request = new MockHttpServletRequest();
        request.addParameter("openid.identity", "http://openid.ja-sig.org/battags");
        request.addParameter("openid.return_to", "http://www.ja-sig.org/?service=fa");
        request.addParameter("openid.sig", this.openIdService.getSignature());
       
        final OpenIdService o = OpenIdService.createServiceFrom(request);
       
        assertTrue(this.openIdService.equals(o));
        assertFalse(this.openIdService.equals(null));
        assertFalse(this.openIdService.equals(new Object()));
    }
View Full Code Here


        final MockRequestContext context = new MockRequestContext();
        final MockHttpServletRequest request = new MockHttpServletRequest();
        request.setParameter("openid.identity", "fablah");
        request.setParameter("openid.return_to", "http://www.cnn.com");
       
        final OpenIdService service = OpenIdService.createServiceFrom(request);
        context.getFlowScope().put("service", service);
        context.getFlowScope().put("ticketGrantingTicketId", "tgtId");
       
        context.setExternalContext(new ServletExternalContext(new MockServletContext(), request, new MockHttpServletResponse()));
        assertEquals("error", this.action.execute(context).getId());
View Full Code Here

        this.ticketRegistry.addTicket(t);
       
        request.setParameter("openid.identity", "http://openid.aol.com/scootman28");
        request.setParameter("openid.return_to", "http://www.cnn.com");

        final OpenIdService service = OpenIdService.createServiceFrom(request);
        context.getFlowScope().put("service", service);
        context.getFlowScope().put("ticketGrantingTicketId", t.getId());

        context.setExternalContext(new ServletExternalContext(new MockServletContext(), request, new MockHttpServletResponse()));
        assertEquals("success", this.action.execute(context).getId());
View Full Code Here

TOP

Related Classes of org.jasig.cas.support.openid.authentication.principal.OpenIdService

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.