mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 16:37:13 +02:00
RemoteApiOption has a package-private method that takes a Stream representing the content of a JSON and use a GoogleCredential created from it as its credential. This CL uses reflection to change the access modifier of that method in order to supply a credential stream that is self-managed. This is obviously not ideal and prone to breakage in case the getGoogleCredentialStream method is changed. Unfortunately upstream is not willing to make it public citing the reason that GoogleCredential.fromStream() (which getGoogleCredentialStream uses) is a @Beta annotated function (see https://groups.google.com[]forum/#!searchin/domain-registry-eng/remoteapioptions%7Csort:date/domain-registry-eng/Flsah6skszQ/CySZv2XEBwAJ). However this function is introduced 5 years ago as a public function (
|
||
---|---|---|
.. | ||
client_secret.json | ||
client_secret_UNITTEST.json | ||
README.md |
Adding Client Secrets
This directory contains the client secret files needed by the nomulus
tool to
connect to the Nomulus backend via OAuth2. Adding client secret files to this
directory is one of two steps you need to perform; the other is adding the
client id contained in the client secret file to the list of allowed ids in the
Nomulus configuration file. See the configuration documentation for more
information.