ws-federation implementation in Apex