remove hard coded reference to localhost:8080 in areas.2

This commit is contained in:
Keith Woodlock
2012-05-18 13:57:47 +01:00
parent ac8c68a435
commit 965429e30e
17 changed files with 582 additions and 402 deletions
@@ -21,6 +21,8 @@ import org.springframework.security.core.Authentication;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.stereotype.Component;
import com.sun.jersey.core.util.Base64;
@Path("/v1/authentication")
@Component
@Scope("singleton")
@@ -49,6 +51,9 @@ public class AuthenticationApiResource {
}
authenticatedUserData.setPermissions(permissions);
authenticatedUserData.setAuthenticated(true);
byte[] base64EncodedAuthenticationKey = Base64.encode(username + ":" + password);
authenticatedUserData.setBase64EncodedAuthenticationKey(new String(base64EncodedAuthenticationKey));
}
return Response.ok().entity(authenticatedUserData).build();