1234567891011121314151617181920212223242526272829303132333435363738 |
- hwi_oauth:
- connect:
- account_connector: chamilo_user.security.user_provider
- firewall_names:
- - admin
- resource_owners:
- github:
- type: github
- client_id: '%env(GITHUB_ID)%'
- client_secret: '%env(GITHUB_SECRET)%'
- facebook:
- type: facebook
- client_id: '%env(FB_ID)%'
- client_secret: '%env(FB_SECRET)%'
- google:
- type: google
- client_id: '%env(GOOGLE_ID)%'
- client_secret: '%env(GOOGLE_SECRET)%'
- scope: "email profile"
- my_custom_oauth2:
- type: oauth2
- client_id: '<client_id>'
- client_secret: '<client_secret>'
- access_token_url: 'https://path.to/oauth/v2/token'
- authorization_url: 'https://path.to/oauth/v2/authorize'
- infos_url: 'https://path.to/api/user'
- scope: user_details
- user_response_class: HWI\Bundle\OAuthBundle\OAuth\Response\PathUserResponse
- paths: {identifier: id, nickname: username, realname: fullname}
- fosub:
- # try 30 times to check if a username is available (foo, foo1, foo2 etc)
- username_iterations: 30
- # mapping between resource owners (see below) and properties
- properties:
- github: githubId
- google: googleId
- facebook: facebookId
- my_custom_provider: customId
|