Package org.josso.agent

Examples of org.josso.agent.SSOAgentRequest


    log.debug("Trying to validate the following Ticket: " + ticket);
   
      String requester = httpRequest.getContextPath().substring(1);

    //Use the JOSSO Client Library to validate the token and extract the subject that was authenticated
    SSOAgentRequest agentRequest = this.doMakeSSOAgentRequest(requester, SSOAgentRequest.ACTION_RELAY,
    null, ticket, httpRequest, httpResponse);
   
    SingleSignOnEntry entry = this.httpAgent.processRequest(agentRequest);
   
    if(entry != null)
    {
      String sessionId = agentRequest.getSessionId();
      String assertionId = agentRequest.getAssertionId();
      String principal = entry.principal.getName();
     
      log.debug("-----------------------------------------------------------");
      log.debug("SessionId: " + sessionId);
      log.debug("AssertionId: " + assertionId);
View Full Code Here


    log.debug("Trying to validate the following Ticket: " + ticket);
   
      String requester = JOSSOUtils.getPartnerAppId(httpAgent, httpRequest);

    //Use the JOSSO Client Library to validate the token and extract the subject that was authenticated
    SSOAgentRequest agentRequest = this.doMakeSSOAgentRequest(requester, SSOAgentRequest.ACTION_RELAY,
    null, ticket, httpRequest, httpResponse);
   
    SingleSignOnEntry entry = this.httpAgent.processRequest(agentRequest);
   
    if(entry != null)
    {
      String sessionId = agentRequest.getSessionId();
      String assertionId = agentRequest.getAssertionId();
      String principal = entry.principal.getName();

      log.debug("SessionId: " + sessionId);
      log.debug("AssertionId: " + assertionId);
      log.debug("Principal: " + principal);
View Full Code Here

  {
    String ticket = httpRequest.getParameter("josso_assertion_id");
    log.debug("Trying to validate the following Ticket: "+ticket);
   
    //Use the JOSSO Client Library to validate the token and extract the subject that was authenticated
    SSOAgentRequest agentRequest = this.doMakeSSOAgentRequest(SSOAgentRequest.ACTION_RELAY,
    null, ticket, httpRequest, httpResponse);
   
    SingleSignOnEntry entry = this.httpAgent.processRequest(agentRequest);
   
    if(entry != null)
    {
      String sessionId = agentRequest.getSessionId();
      String assertionId = agentRequest.getAssertionId();
      String principal = entry.principal.getName();
     
      log.debug("-----------------------------------------------------------");
      log.debug("SessionId: "+sessionId);
      log.debug("AssertionId: "+assertionId);
View Full Code Here

TOP

Related Classes of org.josso.agent.SSOAgentRequest

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.