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

daycry / auth / 22540129920

01 Mar 2026 09:07AM UTC coverage: 63.267%. Remained the same
22540129920

push

github

daycry
Update CHANGELOG links and remove note

Remove an obsolete note and correct the release comparison link in CHANGELOG.md. Deleted the line stating "All features and fixes below were originally planned for v3.1.0." and updated the [4.0.0] comparison URL to use v3.1.0...v4.0.0 instead of v3.0.6...v4.0.0 to reflect the correct baseline for the v4.0.0 changelog entry.

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\Config\AuthOAuth;
17
use Daycry\Auth\Libraries\Oauth\OauthManager;
18
use Exception;
19

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

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

32
    public function redirect(string $provider)
1✔
33
    {
34
        $config  = config(AuthOAuth::class);
1✔
35
        $manager = new OauthManager($config);
1✔
36

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

40
    public function callback(string $provider)
×
41
    {
42
        $config  = config(AuthOAuth::class);
×
43
        $manager = new OauthManager($config);
×
44

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

51
            return redirect()->to(config('Auth')->loginRedirect());
×
52
        } catch (Exception $e) {
×
53
            return redirect()->to(config('Auth')->loginPage())->with('error', $e->getMessage());
×
54
        }
55
    }
56
}
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