Bonjour ,
je veux connecter mon applicatio avec bitbucket.J'ai suivi un tutoriel à la lettre mais cette erreur me s'affiche.
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
The child node "resource_owners" at path "hwi_oauth" must be configured
voici le contenu de config.yml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
hwi_oauth:
    # list of names of the firewalls in which this bundle is active, this setting MUST be set
    firewall_names: [secured_area]
 
hwi_oauth:
  connect:
    confirmation: true
    registration_form: fos_user.registration.form.factory
  firewall_names: main
  fosub:
        username_iterations: 30
        properties:
            bitbucket: bitbucketID
        resource_owners:
        bitbucket:
            type:                bitbucket
            client_id:           RxGYuKAfLMaDsxQq7X
            client_secret:       8Pwaf3PfFBDdYURmvxWx8qzkMrTUneF3
routing.yml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
# app/config/routing.yml
hwi_oauth_redirect:
    resource: "@HWIOAuthBundle/Resources/config/routing/redirect.xml"
    prefix:   /connect
 
hwi_oauth_connect:
    resource: "@HWIOAuthBundle/Resources/config/routing/connect.xml"
    prefix:   /connect
 
hwi_oauth_login:
    resource: "@HWIOAuthBundle/Resources/config/routing/login.xml"
    prefix:   /lo
security.yml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
 
    firewalls:
        main:
            pattern: ^/
            form_login:
                provider: fos_userbundle
                csrf_token_generator: security.csrf.token_manager # Use form.csrf_provider instead for Symfony <2.4
 
            oauth:
                resource_owners:
                     bitbucket: "/login/check-bitbucket"
                login_path: /login
                failure_path: /login
                oauth_user_provider:
                      service: my.oauth_aware.user_provider.service
 
 
            logout:       true
            anonymous:    true
 
    access_control:
        - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/admin/, role: ROLE_ADMIN }
Merci