Adds dynamic checking for mapped tokens

Avoids having to manually add protocols to check if it is a mapped
token. This check is done by using the identity_provider and protocol
fields in token, if they are present, means the token being analysed
is a mapped one.

Co-Authored-By: Marek Denis <marek.denis@cern.ch>

Change-Id: I5a695fa2efa8da151158a15c3b7ec8885d57c2d1
Closes-Bug: 1390100
Merge "Adds dynamic checking for mapped tokens"