fix bugs and support rfc 6750 bearer token