hwi_oauth.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. hwi_oauth:
  2. connect:
  3. account_connector: chamilo_user.security.user_provider
  4. firewall_names:
  5. - admin
  6. resource_owners:
  7. github:
  8. type: github
  9. client_id: '%env(GITHUB_ID)%'
  10. client_secret: '%env(GITHUB_SECRET)%'
  11. facebook:
  12. type: facebook
  13. client_id: '%env(FB_ID)%'
  14. client_secret: '%env(FB_SECRET)%'
  15. google:
  16. type: google
  17. client_id: '%env(GOOGLE_ID)%'
  18. client_secret: '%env(GOOGLE_SECRET)%'
  19. scope: "email profile"
  20. my_custom_oauth2:
  21. type: oauth2
  22. client_id: '<client_id>'
  23. client_secret: '<client_secret>'
  24. access_token_url: 'https://path.to/oauth/v2/token'
  25. authorization_url: 'https://path.to/oauth/v2/authorize'
  26. infos_url: 'https://path.to/api/user'
  27. scope: user_details
  28. user_response_class: HWI\Bundle\OAuthBundle\OAuth\Response\PathUserResponse
  29. paths: {identifier: id, nickname: username, realname: fullname}
  30. fosub:
  31. # try 30 times to check if a username is available (foo, foo1, foo2 etc)
  32. username_iterations: 30
  33. # mapping between resource owners (see below) and properties
  34. properties:
  35. github: githubId
  36. google: googleId
  37. facebook: facebookId
  38. my_custom_provider: customId