restapi: Disallow endless authentication session #1005749

Change-Id: I3cabe1d9e42f390ee944d29f0dd78246689107dd
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1005749
Signed-off-by: Michael pasternak <mpastern@redhat.com>