What version of Swift are you using? We have tested with Icehouse and Juno (not with recent releases) with keystone auth.