Examples of UniqueKeyUserDetails


Examples of org.cognitor.server.platform.security.UniqueKeyUserDetails

    public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response,
                                        Authentication authentication)
            throws IOException, ServletException {

        if (isOpenIdAuthentication(request, authentication)) {
            UniqueKeyUserDetails userDetails = (UniqueKeyUserDetails) authentication.getPrincipal();
            String returnUrl = this.openIdManager.getAuthenticationResponseReturnToUrl(request,
                    userDetails.getUniqueKey(),
                    authentication.isAuthenticated());
            response.sendRedirect(returnUrl);
        } else {
            super.onAuthenticationSuccess(request, response, authentication);
        }
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.