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

NIT-Administrative-Systems / SysDev-laravel-soa / 7805057844

06 Feb 2024 07:28PM UTC coverage: 45.675% (-0.2%) from 45.913%
7805057844

push

github

web-flow
Housekeeping (#162)

11 of 35 new or added lines in 14 files covered. (31.43%)

9 existing lines in 7 files now uncovered.

264 of 578 relevant lines covered (45.67%)

14.07 hits per line

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

0.0
/src/Console/Commands/ShowOAuthCallbackUrl.php
1
<?php
2

3
namespace Northwestern\SysDev\SOA\Console\Commands;
4

5
use Illuminate\Console\Command;
6
use Illuminate\Support\Str;
7

8
class ShowOAuthCallbackUrl extends Command
9
{
10
    protected $signature = 'websso:callback';
11

12
    protected $description = 'Displays the OAuth callback URI, which must be added to an allow list in Azure AD';
13

14
    public function handle()
15
    {
16
        $callbackUrl = route('login-oauth-callback', [], true);
×
17

18
        $this->line("You must add the OAuth callback URLs to Azure AD's list of web redirect URIs.");
×
NEW
19
        $this->line('Shown below is the callback URI for this application:');
×
20
        $this->newLine();
×
21

22
        $this->info($callbackUrl);
×
23
        $this->newLine();
×
24

25
        if (
26
            Str::startsWith($callbackUrl, 'http://')
×
NEW
27
            && ! Str::contains($callbackUrl, 'localhost')
×
28
        ) {
NEW
29
            $this->error('WARNING: This callback URI is not served over HTTPS. Azure AD will not accept it.');
×
30
        }
31
    }
32
}
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