Remove HWIOAuthBundle

pull/3064/head
Julio 5 years ago
parent 375c963966
commit 381384b665
  1. 12
      .env
  2. 7
      composer.json
  3. 2
      config/bundles.php
  4. 14
      config/packages/httplug.yaml
  5. 38
      config/packages/hwi_oauth.yaml
  6. 10
      config/packages/security.yaml
  7. 11
      config/routes/hwi_oauth_routing.yaml

12
.env

@ -35,15 +35,3 @@ APP_LOCALE='en'
APP_MULTIPLE_ACCESS_URL=''
###< chamilo ###
###> hwi/oauth-bundle ###
FB_ID=''
FB_SECRET=''
GITHUB_ID=''
GITHUB_SECRET=''
GOOGLE_ID=''
GOOGLE_SECRET=''
###< hwi/oauth-bundle ###

@ -58,7 +58,7 @@
"doctrine/doctrine-migrations-bundle": "~2.0",
"erusev/parsedown": "~1.7",
"ezyang/htmlpurifier": "~4.10",
"ezyang/htmlpurifier": "~4.12",
"sensio/framework-extra-bundle": "~5.0",
"sensiolabs/security-checker": "~6.0",
@ -68,7 +68,7 @@
"symfony/flex": "^1.0",
"symfony/form": "^4.0",
"symfony/framework-bundle": "^4.0",
"symfony/http-kernel": "4.3.*",
"symfony/http-kernel": "^4.0",
"symfony/monolog-bundle": "^3.1",
"symfony/polyfill-apcu": "^1.9",
"symfony/security-bundle": "^4.0",
@ -152,9 +152,6 @@
"kigkonsult/icalcreator": "~2.24",
"essence/essence": "~3.0",
"paragonie/random-lib": "~2.0",
"hwi/oauth-bundle": "~0.6",
"php-http/guzzle6-adapter": "^1.1",
"php-http/httplug-bundle": "^1.8",
"knplabs/knp-menu-bundle": "^2.0",
"symfony/requirements-checker": "^1.1",
"liip/theme-bundle": "^1.6",

@ -60,11 +60,9 @@ return [
Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle::class => ['all' => true],
Sylius\Bundle\ResourceBundle\SyliusResourceBundle::class => ['all' => true],
Sylius\Bundle\SettingsBundle\SyliusSettingsBundle::class => ['all' => true],
Http\HttplugBundle\HttplugBundle::class => ['all' => true],
Oneup\FlysystemBundle\OneupFlysystemBundle::class => ['all' => true],
Sonata\CacheBundle\SonataCacheBundle::class => ['all' => true],
Knp\Bundle\MarkdownBundle\KnpMarkdownBundle::class => ['all' => true],
HWI\Bundle\OAuthBundle\HWIOAuthBundle::class => ['all' => true],
Liip\ThemeBundle\LiipThemeBundle::class => ['all' => true],
A2lix\AutoFormBundle\A2lixAutoFormBundle::class => ['all' => true],
A2lix\TranslationFormBundle\A2lixTranslationFormBundle::class => ['all' => true],

@ -1,14 +0,0 @@
httplug:
plugins:
redirect:
preserve_header: true
discovery:
client: 'auto'
clients:
app:
http_methods_client: true
plugins:
- 'httplug.plugin.content_length'
- 'httplug.plugin.redirect'

@ -1,38 +0,0 @@
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

@ -76,13 +76,3 @@ security:
path: /logout
target: /
switch_user: false
oauth:
resource_owners:
facebook: "/login/check-facebook"
google: "/login/check-google"
github: "/login/check-github"
login_path: /login
failure_path: /login
use_forward: false
oauth_user_provider:
service: chamilo_user.security.user_provider

@ -1,11 +0,0 @@
hwi_oauth_redirect:
resource: "@HWIOAuthBundle/Resources/config/routing/redirect.xml"
prefix: /connect
hwi_oauth_connect:
resource: "@HWIOAuthBundle/Resources/config/routing/connect.xml"
prefix: /connect
hwi_oauth_login:
resource: "@HWIOAuthBundle/Resources/config/routing/login.xml"
prefix: /login_ouath
Loading…
Cancel
Save