setting var for openbadges.me in middleware