Added :endpoint option to client credentials