This also does all the compatibility work. When to use which endpoint to authenticate agains a jwt service.