You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: support encoded credentials in connection URL (#1223)
This enables a user to specify a base64 encoded JSON string that contains the credentials
that should be used for the connection. This removes the requirement to write the JSON
string to a file before it can be used for a connection.
Fixesgoogleapis/java-spanner-jdbc#486
* OAuth token to use for authentication. Cannot be used in combination with a credentials file.
179
181
*/
@@ -210,7 +212,10 @@ public String[] getValidValues() {
210
212
DEFAULT_RETRY_ABORTS_INTERNALLY),
211
213
ConnectionProperty.createStringProperty(
212
214
CREDENTIALS_PROPERTY_NAME,
213
-
"The location of the credentials file to use for this connection. If this property is not set, the connection will use the default Google Cloud credentials for the runtime environment."),
215
+
"The location of the credentials file to use for this connection. If neither this property or encoded credentials are set, the connection will use the default Google Cloud credentials for the runtime environment."),
216
+
ConnectionProperty.createStringProperty(
217
+
ENCODED_CREDENTIALS_PROPERTY_NAME,
218
+
"Base64-encoded credentials to use for this connection. If neither this property or a credentials location are set, the connection will use the default Google Cloud credentials for the runtime environment."),
214
219
ConnectionProperty.createStringProperty(
215
220
OAUTH_TOKEN_PROPERTY_NAME,
216
221
"A valid pre-existing OAuth token to use for authentication for this connection. Setting this property will take precedence over any value set for a credentials file."),
0 commit comments