Package net.vinant.idp4java.openid4javaImpl

Examples of net.vinant.idp4java.openid4javaImpl.SimpleConsumer


    }else{
      //response.sendRedirect("/idp4java/endpoint");
      //request.getRequestDispatcher("login.jsp").forward(request, response);
      //response.sendRedirect("login.jsp");
      Object osc = session.getAttribute("SimpleConsumer");
      SimpleConsumer simpleConsumer = null;
      try {
        //Initialize SimpleConsumer
        if(osc!=null){
          simpleConsumer = (SimpleConsumer)osc;
        }else{
          simpleConsumer = new SimpleConsumer();
          session.setAttribute("SimpleConsumer", simpleConsumer);
        }
       
        //Determine if we need to do Attribute Exchange or verify response
        if(isAttribueExchangeResponse(request)){
          simpleConsumer.verifyResponse(request);
        }else{
          simpleConsumer.authRequest("http://localhost:8081/idp4java/idp", request, response);
        }
       
        Object o = session.getAttribute("SUCCESS");
        if(o!=null && (Boolean) session.getAttribute("SUCCESS") == Boolean.TRUE){
          processLoginSuccess(request, response);
View Full Code Here

TOP

Related Classes of net.vinant.idp4java.openid4javaImpl.SimpleConsumer

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.