File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -120,19 +120,19 @@ public static function fromWellKnownFile()
120120 /**
121121 * Create a new Credentials instance.
122122 *
123+ * **Important**: If you accept a credential configuration (credential JSON/File/Stream) from an
124+ * external source for authentication to Google Cloud Platform, you must validate it before
125+ * providing it to any Google API or library. Providing an unvalidated credential configuration to
126+ * Google APIs can compromise the security of your systems and data. For more information
127+ * {@see https://cloud.google.com/docs/authentication/external/externally-sourced-credentials}
128+ *
123129 * @param string|string[] $scope the scope of the access request, expressed
124130 * either as an Array or as a space-delimited String.
125131 * @param array<mixed> $jsonKey the JSON credentials.
126132 * @param string|string[] $defaultScope The default scope to use if no
127133 * user-defined scopes exist, expressed either as an Array or as a
128134 * space-delimited string.
129135 *
130- * **Important**: If you accept a credential configuration (credential JSON/File/Stream) from an
131- * external source for authentication to Google Cloud Platform, you must validate it before
132- * providing it to any Google API or library. Providing an unvalidated credential configuration to
133- * Google APIs can compromise the security of your systems and data. For more information
134- * {@see https://cloud.google.com/docs/authentication/external/externally-sourced-credentials}
135- *
136136 * @return ServiceAccountCredentials|UserRefreshCredentials|ImpersonatedServiceAccountCredentials|ExternalAccountCredentials
137137 */
138138 public static function makeCredentials (
You can’t perform that action at this time.
0 commit comments