updated examples for discovery, secret token authentication, and private
key retrieval