Revision: 1262
Author: mathiasbr
Date: 2006-08-02 07:58:53 -0700 (Wed, 02 Aug 2006)
ViewCVS: http://svn.sourceforge.net/spring-rich-c/?rev=1262&view=rev
Log Message:
-----------
fix for RCP-387
BasicAuthHttpInvokerRequestExecutor now uses getName() from the authentication
object
Modified Paths:
--------------
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/security/remoting/BasicAuthHttpInvokerRequestExecutor.java
Modified:
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/security/remoting/BasicAuthHttpInvokerRequestExecutor.java
===================================================================
---
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/security/remoting/BasicAuthHttpInvokerRequestExecutor.java
2006-08-02 14:16:04 UTC (rev 1261)
+++
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/security/remoting/BasicAuthHttpInvokerRequestExecutor.java
2006-08-02 14:58:53 UTC (rev 1262)
@@ -125,8 +125,8 @@
Authentication auth = getAuthenticationToken();
- if( (auth != null) && (auth.getPrincipal() != null) &&
(auth.getCredentials() != null) ) {
- String base64 = auth.getPrincipal().toString() + ":" +
auth.getCredentials().toString();
+ if( (auth != null) && (auth.getName() != null) &&
(auth.getCredentials() != null) ) {
+ String base64 = auth.getName() + ":" +
auth.getCredentials().toString();
con.setRequestProperty( "Authorization", "Basic " + new String(
Base64.encodeBase64( base64.getBytes() ) ) );
if( _logger.isDebugEnabled() ) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
spring-rich-c-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs