File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
tests/TestCase/Authenticator Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,15 @@ class EnvironmentAuthenticator extends AbstractAuthenticator
3333 * - `loginUrl` Login URL or an array of URLs.
3434 * - `urlChecker` Url checker config.
3535 * - `fields` array of required fields to get from the environment
36- * - `optional_fields ` array of optional fields to get from the environment
36+ * - `optionalFields ` array of optional fields to get from the environment
3737 *
3838 * @var array
3939 */
4040 protected $ _defaultConfig = [
4141 'loginUrl ' => null ,
4242 'urlChecker ' => 'Authentication.Default ' ,
4343 'fields ' => [],
44- 'optional_fields ' => [],
44+ 'optionalFields ' => [],
4545 ];
4646
4747 /**
@@ -73,14 +73,14 @@ protected function _getData(ServerRequestInterface $request): ?array
7373 }
7474
7575 /**
76- * Get values from the environment variables configured by `optional_fields `.
76+ * Get values from the environment variables configured by `optionalFields `.
7777 *
7878 * @param \Psr\Http\Message\ServerRequestInterface $request The request that contains login information.
79- * @return array server params defined by optional_fields .
79+ * @return array server params defined by optionalFields .
8080 */
8181 protected function _getOptionalData (ServerRequestInterface $ request ): array
8282 {
83- $ fields = $ this ->_config ['optional_fields ' ];
83+ $ fields = $ this ->_config ['optionalFields ' ];
8484 $ params = $ request ->getServerParams ();
8585
8686 $ data = [];
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ public function testOptionalFields()
211211 'USER_ID ' ,
212212 'SOME_ATTRIBUTE ' ,
213213 ],
214- 'optional_fields ' => [
214+ 'optionalFields ' => [
215215 'OPTIONAL_FIELD ' ,
216216 ],
217217 ]);
You can’t perform that action at this time.
0 commit comments