Apex implementation of JWT and JWT Bearer flow