You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
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
|
|
|