portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/sso/src/test/org/apache/jetspeed/sso TestSSOComponent.java
Date Sun, 28 Nov 2004 02:23:49 GMT
taylor      2004/11/27 18:23:49

  Modified:    components/sso/src/java/org/apache/jetspeed/sso/impl
                        PersistenceBrokerSSOProvider.java
               components/sso/src/test/org/apache/jetspeed/sso
                        TestSSOComponent.java
  Log:
  refactoring of SSO component to support SSOPrincipal (soon to be committed) and UserPrincipal
  Thus the Subject will contain 0..n SSO principals
  
  Revision  Changes    Path
  1.3       +7 -10     jakarta-jetspeed-2/components/sso/src/java/org/apache/jetspeed/sso/impl/PersistenceBrokerSSOProvider.java
  
  Index: PersistenceBrokerSSOProvider.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/sso/src/java/org/apache/jetspeed/sso/impl/PersistenceBrokerSSOProvider.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PersistenceBrokerSSOProvider.java	22 Nov 2004 06:13:31 -0000	1.2
  +++ PersistenceBrokerSSOProvider.java	28 Nov 2004 02:23:49 -0000	1.3
  @@ -95,15 +95,6 @@
   	}
   
   	/* (non-Javadoc)
  -	 * @see org.apache.jetspeed.sso.SSOProvider#addBasicAuthenticationForSite(javax.servlet.http.HttpServletRequest,
javax.security.auth.Subject, java.lang.String)
  -	 */
  -	public void addBasicAuthenticationForSite(HttpServletRequest request,
  -			Subject subject, String site) throws SSOException {
  -		// TODO Needs to be done for SSO Final
  -
  -	}
  -
  -	/* (non-Javadoc)
   	 * @see org.apache.jetspeed.sso.SSOProvider#getCredentials(javax.security.auth.Subject,
java.lang.String)
   	 */
   	public SSOContext getCredentials(Subject subject, String site)
  @@ -134,7 +125,7 @@
   		 * Adds credentials for a user to the site. If the site doesn't exist it will be created
   	 * @see org.apache.jetspeed.sso.SSOProvider#addCredentialsForSite(javax.security.auth.Subject,
java.lang.String, java.lang.String)
   	 */
  -	public void addCredentialsForSite(Subject subject, String site, String pwd)
  +	public void addCredentialsForSite(Subject subject, String remoteUser, String site, String
pwd)
   			throws SSOException {
   		
   		// Check if the site already exists
  @@ -357,4 +348,10 @@
   	    return null;
   	    
   	}
  +    
  +    public void  updateCredentialsForSite(Subject subject, String remoteUser, String site,
String pwd)  
  +    throws SSOException
  +    {
  +        
  +    }
   }
  
  
  
  1.4       +1 -1      jakarta-jetspeed-2/components/sso/src/test/org/apache/jetspeed/sso/TestSSOComponent.java
  
  Index: TestSSOComponent.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/sso/src/test/org/apache/jetspeed/sso/TestSSOComponent.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestSSOComponent.java	22 Nov 2004 06:13:31 -0000	1.3
  +++ TestSSOComponent.java	28 Nov 2004 02:23:49 -0000	1.4
  @@ -121,7 +121,7 @@
       		// Add credential
       		try
   			{
  -    			ssoBroker.addCredentialsForSite(subject, TEST_URL,"test");
  +    			ssoBroker.addCredentialsForSite(subject, "TODO", TEST_URL,"test");
       			System.out.println("SSO Credential added for user:" + TEST_USER+ " site: " + TEST_URL);
   			}
   			catch(SSOException ssoex)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message