Fix AuthPlugin authentification

AuthPlugin wrongly assumed that self.opts['token'] is always a function.

Change-Id: I968c62aec0d16d736693e403d03a495baf8ea15a
Closes-Bug: #1369461
Merge "Fix AuthPlugin authentification"