Skip to content

Commit

Permalink
Merge pull request #141 from brianfreytag/azure_config_defaults
Browse files Browse the repository at this point in the history
Update Azure DI Config With Default Values
  • Loading branch information
weaverryan authored Dec 3, 2018
2 parents c8672ce + ef8909d commit 8c8a3dd
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ public function buildConfiguration(NodeBuilder $node)
->scalarNode('url_login')
->info('Domain to build login URL')
->example("url_login: 'https://login.microsoftonline.com/'")
->defaultValue('https://login.microsoftonline.com/')
->end()
->scalarNode('path_authorize')
->example("path_authorize: '/oauth2/authorize'")
->info('Oauth path to authorize against')
->defaultValue('/oauth2/authorize')
->end()
->scalarNode('path_token')
->info('Oauth path to retrieve a token')
->example("path_token: '/oauth2/token'")
->defaultValue('/oauth2/token')
->end()
->arrayNode('scope')
->info('Oauth scope send with the request')
Expand All @@ -35,13 +39,16 @@ public function buildConfiguration(NodeBuilder $node)
->scalarNode('tenant')
->example("tenant: 'common'")
->info('The tenant to use, default is `common`')
->defaultValue('common')
->end()
->scalarNode('url_api')
->example("url_api: 'https://graph.windows.net/'")
->info('Domain to build request URL')
->defaultValue('https://graph.windows.net/')
->end()
->scalarNode('resource')
->info('Oauth resource field')
->defaultNull()
->end()
->scalarNode('api_version')
->example("api_version: '1.6'")
Expand All @@ -50,6 +57,7 @@ public function buildConfiguration(NodeBuilder $node)
->booleanNode('auth_with_resource')
->example('auth_with_resource: true')
->info('Send resource field with auth-request')
->defaultTrue()
->end();
}

Expand Down

0 comments on commit 8c8a3dd

Please sign in to comment.