webticket: cache ADFS token
commitd7d129d1d74a045d2f9a0888ab23bfcd866eff56
authorStefan Becker <chemobejk@gmail.com>
Sat, 1 Dec 2012 16:16:07 +0000 (1 18:16 +0200)
committerStefan Becker <chemobejk@gmail.com>
Sat, 1 Dec 2012 16:23:57 +0000 (1 18:23 +0200)
treea8d724d3df9b52fc98745cdcd095aebb6a93d05a
parent1e0b0a1f41b5a5f4dcfaeb34549d0dbabb377a59
webticket: cache ADFS token

The token requested from ADFS applies to the generic address
urn:federation:MicrosoftOnline and not to a specific service URI.
Therefore SIPE now caches it and reuses it in future authentication
attempts until 60 seconds before its expiration time.

This should f.ex. improve the turnaround time when the frontend server
redirectes SIPE to the users home server.
src/core/sipe-webticket.c