Subiendo proyecto completo sin restricciones de git ignore
This commit is contained in:
21
vendor/genealabs/laravel-sign-in-with-apple/tests/Fixtures/Http/Controllers/SiwaController.php
vendored
Normal file
21
vendor/genealabs/laravel-sign-in-with-apple/tests/Fixtures/Http/Controllers/SiwaController.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace GeneaLabs\LaravelSignInWithApple\Tests\Fixtures\Http\Controllers;
|
||||
|
||||
use Laravel\Socialite\Facades\Socialite;
|
||||
|
||||
class SiwaController
|
||||
{
|
||||
public function login()
|
||||
{
|
||||
return Socialite::driver("sign-in-with-apple")
|
||||
->scopes(["name", "email"])
|
||||
->redirect();
|
||||
}
|
||||
|
||||
public function callback()
|
||||
{
|
||||
$user = Socialite::driver("sign-in-with-apple")
|
||||
->user();
|
||||
}
|
||||
}
|
||||
20
vendor/genealabs/laravel-sign-in-with-apple/tests/Fixtures/Providers/TestingServiceProvider.php
vendored
Normal file
20
vendor/genealabs/laravel-sign-in-with-apple/tests/Fixtures/Providers/TestingServiceProvider.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace GeneaLabs\LaravelSignInWithApple\Tests\Fixtures\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class TestingServiceProvider extends ServiceProvider
|
||||
{
|
||||
protected $defer = false;
|
||||
|
||||
public function boot()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
public function register()
|
||||
{
|
||||
$this->loadRoutesFrom(__DIR__ . "/../routes/web.php");
|
||||
}
|
||||
}
|
||||
10
vendor/genealabs/laravel-sign-in-with-apple/tests/Fixtures/resources/views/tests.blade.php
vendored
Normal file
10
vendor/genealabs/laravel-sign-in-with-apple/tests/Fixtures/resources/views/tests.blade.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<! DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
@signInWithApple("black", false, "sign-in", 6)
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
7
vendor/genealabs/laravel-sign-in-with-apple/tests/Fixtures/routes/web.php
vendored
Normal file
7
vendor/genealabs/laravel-sign-in-with-apple/tests/Fixtures/routes/web.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
use GeneaLabs\LaravelSignInWithApple\Tests\Fixtures\Http\Controllers\SiwaController;
|
||||
|
||||
Route::view("/tests", "tests");
|
||||
Route::get("/siwa-login", SiwaController::class . "@login");
|
||||
Route::post("/siwa-callback", SiwaController::class . "@callback");
|
||||
Reference in New Issue
Block a user