SAND-framework/application/include/vues/view/authentification.blade.php
Emmanuel ROY 41f2c5820b Ajout intégration de l'hybridAuthentification encore en état de code brut
Pas de tests

TODO: aller chercher les token et les id des authentifcation pour google, github, facebook, twitter ... Reste a tester et à décider pour les autres types d'authentification.
2019-09-26 04:27:05 +02:00

33 lines
1,018 B
PHP

@extends('body')
@section('sidebar')
@parent
<p>This is appended to the master sidebar.</p>
@endsection
@section('content')
<h1>Sign in</h1>
<ul>
@foreach ($hybridauth->getProviders() as $name)
@if (!isset($adapters[$name]))
<li>
<a href="#" onclick="javascript:auth_popup('{{ $name }}');">
Sign in with {{ $name }}
</a>
</li>
@endif
@endforeach
<ul>
@endsection
@section('top-javascript')
<script>
function auth_popup(provider) {
// replace 'path/to/hybridauth' with the real path to this script
var authWindow = window.open('/control/authentification-callback-example/provider/' + provider, 'authWindow', 'width=600,height=400,scrollbars=yes');
return false;
}
</script>
@endsection