• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

daycry / auth / 22527658769

28 Feb 2026 07:41PM UTC coverage: 63.267% (-3.6%) from 66.864%
22527658769

push

github

web-flow
Merge pull request #36 from daycry/development

Implement TOTP 2FA, JWT auth, device session tracking, and docs overhaul

465 of 1168 new or added lines in 52 files covered. (39.81%)

129 existing lines in 46 files now uncovered.

3064 of 4843 relevant lines covered (63.27%)

41.53 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

25.0
/src/Controllers/OauthController.php
1
<?php
2

3
declare(strict_types=1);
4

5
/**
6
 * This file is part of Daycry Auth.
7
 *
8
 * (c) Daycry <daycry9@proton.me>
9
 *
10
 * For the full copyright and license information, please view
11
 * the LICENSE file that was distributed with this source code.
12
 */
13

14
namespace Daycry\Auth\Controllers;
15

16
use Daycry\Auth\Libraries\Oauth\OauthManager;
17
use Exception;
18

19
class OauthController extends BaseAuthController
20
{
21
    protected $helpers = ['setting', 'url'];
22

23
    /**
24
     * Get rules for validation
25
     */
UNCOV
26
    protected function getValidationRules(): array
×
27
    {
28
        return [];
×
29
    }
30

31
    public function redirect(string $provider)
1✔
32
    {
33
        $config  = config('Auth');
1✔
34
        $manager = new OauthManager($config);
1✔
35

36
        return $manager->setProvider($provider)->redirect();
1✔
37
    }
38

UNCOV
39
    public function callback(string $provider)
×
40
    {
41
        $config  = config('Auth');
×
42
        $manager = new OauthManager($config);
×
43

44
        try {
45
            $user = $manager->setProvider($provider)->handleCallback(
×
46
                $this->request->getGet('code') ?? '',
×
47
                $this->request->getGet('state') ?? '',
×
48
            );
×
49

50
            return redirect()->to(config('Auth')->loginRedirect());
×
51
        } catch (Exception $e) {
×
52
            return redirect()->to(config('Auth')->loginPage())->with('error', $e->getMessage());
×
53
        }
54
    }
55
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc