parent
4572bcf79d
commit
a67c7c6442
@ -1,38 +1,38 @@ |
||||
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 |
||||
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 |
||||
|
Loading…
Reference in new issue