Package org.pac4j.cas.profile

Examples of org.pac4j.cas.profile.CasProxyProfile


            final Assertion assertion = this.ticketValidator.validate(ticket, contextualCallbackUrl);
            final AttributePrincipal principal = assertion.getPrincipal();
            logger.debug("principal : {}", principal);
            final CasProfile casProfile;
            if (this.casProxyReceptor != null) {
                casProfile = new CasProxyProfile();
            } else {
                casProfile = new CasProfile();
            }
            casProfile.setId(principal.getName());
            casProfile.addAttributes(principal.getAttributes());
View Full Code Here


        } catch (final RequiresHttpAction e) {
        }
        // has credentials
        if (credentials != null) {
            // get user profile
            final CasProxyProfile casProxyProfile = (CasProxyProfile) client.getUserProfile(credentials, context);
            // get proxy ticket
            final String proxyTicket = casProxyProfile.getProxyTicketFor(SERVICE_URL);
            return new ModelAndView(new RedirectView(CommonHelper.addParameter(SERVICE_URL, "ticket", proxyTicket)));
        } else {
            // mode proxy
        }
        return null;
View Full Code Here

TOP

Related Classes of org.pac4j.cas.profile.CasProxyProfile

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.