sync-1254

Hey Mike,
I didn't know how long the official implementation of JWT in portal was going to take and if it will even be backportable so I decided to just create this temporary solution for us.