Test sur l'implémentation de hybridAuth -> OK !
TODO: créé les pages de blog (sommaire,news) permettant d'afficher les fichiers md TODO: créer les commandes complétement TODO: envoyer les bugs wordpress TODO: corriger le bug de création de la base de donnée pour prestashop
This commit is contained in:
parent
1baeaa7f03
commit
01fcc4dc3f
|
@ -5,11 +5,11 @@
|
||||||
|
|
||||||
require CONFIG_PATH . DIRECTORY_SEPARATOR . "authentification-config-example.php";
|
require CONFIG_PATH . DIRECTORY_SEPARATOR . "authentification-config-example.php";
|
||||||
|
|
||||||
//$hybridauth = new Hybridauth\Hybridauth($config);
|
$hybridauth = new Hybridauth\Hybridauth($config);
|
||||||
$hybridauth = \MVC\Classe\Session::getHybridAuth();
|
$hybridauth->authenticate(\MVC\Classe\Session::getStorage()->get('provider'));
|
||||||
//$adapters = $hybridauth->getConnectedAdapters();
|
$adapters = $hybridauth->getConnectedAdapters();
|
||||||
|
|
||||||
$adapter = $hybridauth->getAdapter(\MVC\Classe\Session::getStorage()->get('provider'));
|
/*$adapter = $hybridauth->getAdapter(\MVC\Classe\Session::getStorage()->get('provider'));
|
||||||
|
|
||||||
\MVC\Classe\Dumper::dump($adapter);
|
\MVC\Classe\Dumper::dump($adapter);
|
||||||
|
|
||||||
|
@ -22,3 +22,5 @@ $userProfile = $adapter->getUserProfile();
|
||||||
\MVC\Classe\Dumper::dump($userProfile);
|
\MVC\Classe\Dumper::dump($userProfile);
|
||||||
|
|
||||||
$templateData['adapters'] = [\MVC\Classe\Session::getStorage()->get('provider')=>$adapter];
|
$templateData['adapters'] = [\MVC\Classe\Session::getStorage()->get('provider')=>$adapter];
|
||||||
|
*/
|
||||||
|
$templateData['adapters'] = $adapters;
|
|
@ -4,6 +4,11 @@
|
||||||
|
|
||||||
@section('sidebar')
|
@section('sidebar')
|
||||||
This is the master sidebar.
|
This is the master sidebar.
|
||||||
|
<a href="{{ \MVC\Classe\Url::link_rewrite( false, 'accueil', []) }}">Homepage</a>
|
||||||
|
<a href="{{ \MVC\Classe\Url::link_rewrite( false, 'prestashop', []) }}">Prestashop</a>
|
||||||
|
<a href="{{ \MVC\Classe\Url::link_rewrite( false, 'wordpress', []) }}">Wordpress</a>
|
||||||
|
<a href="{{ \MVC\Classe\Url::link_rewrite( false, 'syf43', []) }}">Symfony 4.3</a>
|
||||||
|
<a href="{{ \MVC\Classe\Url::link_rewrite( false, 'syf51', []) }}">Symfony 5.0.99</a>
|
||||||
@show
|
@show
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
@parent
|
@parent
|
||||||
|
|
||||||
<p>This is appended to the master sidebar.</p>
|
<p>This is appended to the master sidebar.</p>
|
||||||
|
<a href="{{ \MVC\Classe\Url::link_rewrite( false, 'authentification', []) }}">Authentification</a>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
@ -16,7 +17,7 @@
|
||||||
@foreach ($adapters as $name => $adapter)
|
@foreach ($adapters as $name => $adapter)
|
||||||
<li>
|
<li>
|
||||||
from <i>{{ $name }}</i>
|
from <i>{{ $name }}</i>
|
||||||
{{ \MVC\Classe\Dumper::dump($adapter) }}
|
{{ \MVC\Classe\Dumper::dump($adapter->getUserProfile()) }}
|
||||||
<!--<span>(<a href="{{ \MVC\Classe\Url::link_rewrite( true, 'authentification-callback-example', ['logout'=>$name ]) }}"
|
<!--<span>(<a href="{{ \MVC\Classe\Url::link_rewrite( true, 'authentification-callback-example', ['logout'=>$name ]) }}"
|
||||||
">Log Out</a>)</span>-->
|
">Log Out</a>)</span>-->
|
||||||
<span>(<a href="{{ \MVC\Classe\Url::link_rewrite( false, 'logout', ['logout'=>$name ]) }}">Log Out</a>)</span>
|
<span>(<a href="{{ \MVC\Classe\Url::link_rewrite( false, 'logout', ['logout'=>$name ]) }}">Log Out</a>)</span>
|
||||||
|
|
Loading…
Reference in a new issue