Skip to content

Commit 5a693a7

Browse files
committed
Auth config fix
1 parent 0dbebc4 commit 5a693a7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

DependencyInjection/ALSwaggerUIExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function load(array $configs, ContainerBuilder $container)
3232

3333
$container->setParameter('al_swagger_ui.static_resources_dir', $config['static_resources']['resource_dir']);
3434
$container->setParameter('al_swagger_ui.static_resource_list_filename', $config['static_resources']['resource_list_filename']);
35-
$container->setParameter('al_swagger_ui.authentication_config', $config['authentication']);
35+
$container->setParameter('al_swagger_ui.authentication_config', $config['auth_config']);
3636

3737
}
3838
}

Tests/Application/config/config_external.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ imports:
33

44
al_swagger_ui:
55
resource_list: http://petstore.swagger.wordnik.com/api/api-docs
6-
authentication:
6+
auth_config:
77
oauth:
88
enable: false
99
http:
1010
enable: true
1111
key_name: api_key
12-
delivery: header
12+
delivery: header

Tests/Application/config/config_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ al_swagger_ui:
2121
sorter: alpha
2222
highlight_size_threshold: 100
2323
boolean_values: [0, 1]
24-
authentication:
24+
auth_config:
2525
oauth:
2626
enable: true
2727
realm: foobar

0 commit comments

Comments
 (0)