This is a short example how to integrate spring-security to authenticate in Personal Clouds using XDI protocol.