config.yml 1.1 KB

123456789101112131415161718192021222324252627282930
  1. hwi_oauth:
  2. resource_owners:
  3. login:
  4. type: oauth2
  5. client_id: "%client_id%"
  6. client_secret: "%client_secret%"
  7. access_token_url: "%access_token_url%"
  8. authorization_url: "%authorization_url%"
  9. infos_url: "%infos_url%"
  10. scope: "user"
  11. user_response_class: Base\OAuthClientBundle\OAuth\Response\PathUserResponse
  12. paths:
  13. identifier: id
  14. nickname: username
  15. realname: firstname
  16. firstname: firstname
  17. lastname: lastname
  18. roles: roles
  19. firewall_names: [secured_area]
  20. doctrine:
  21. orm:
  22. entity_managers:
  23. default:
  24. mappings:
  25. custom_mapping:
  26. type: annotation
  27. prefix: Base\OAuthClientBundle\Security\Core\User\
  28. dir: "%kernel.root_dir%/../vendor/ik/oauthclient-bundle/Security/Core/User/"
  29. is_bundle: false