NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Trace

data/web/oauth/authorize.php

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

authorize.php on main
Author Date Commit Line Code
Kristian Feldsam over 4 years ago 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
2
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
Open commit View diff
2 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
3
Open commit View diff
3
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
4
if (!isset($_SESSION['mailcow_cc_role'])) {
Open commit View diff
4 if (!isset($_SESSION['mailcow_cc_role'])) {
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
5
  $_SESSION['oauth2_request'] = $_SERVER['REQUEST_URI'];
Open commit View diff
5 $_SESSION['oauth2_request'] = $_SERVER['REQUEST_URI'];
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
6
  header('Location: /?oauth');
Open commit View diff
6 header('Location: /?oauth');
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
7
}
Open commit View diff
7 }
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
8
Open commit View diff
8
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
9
$request = OAuth2\Request::createFromGlobals();
Open commit View diff
9 $request = OAuth2\Request::createFromGlobals();
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
10
$response = new OAuth2\Response();
Open commit View diff
10 $response = new OAuth2\Response();
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
11
Open commit View diff
11
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
12
if (!$oauth2_server->validateAuthorizeRequest($request, $response)) {
Open commit View diff
12 if (!$oauth2_server->validateAuthorizeRequest($request, $response)) {
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
13
  $response->send();
Open commit View diff
13 $response->send();
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
14
  exit;
Open commit View diff
14 exit;
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
15
}
Open commit View diff
15 }
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
16
Open commit View diff
16
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
17
if (!isset($_POST['authorized'])) {
Open commit View diff
17 if (!isset($_POST['authorized'])) {
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
18
  require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php';
Open commit View diff
18 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php';
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
19
Open commit View diff
19
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
20
  $template = 'oauth/authorize.twig';
Open commit View diff
20 $template = 'oauth/authorize.twig';
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
21
  $template_data = [];
Open commit View diff
21 $template_data = [];
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
22
Open commit View diff
22
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
23
  require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php';
Open commit View diff
23 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php';
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
24
  exit;
Open commit View diff
24 exit;
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
25
}
Open commit View diff
25 }
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
26
Open commit View diff
26
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
27
// print the authorization code if the user has authorized your client
Open commit View diff
27 // print the authorization code if the user has authorized your client
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
28
$is_authorized = ($_POST['authorized'] == '1');
Open commit View diff
28 $is_authorized = ($_POST['authorized'] == '1');
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
29
$oauth2_server->handleAuthorizeRequest($request, $response, $is_authorized, $_SESSION['mailcow_cc_username']);
Open commit View diff
29 $oauth2_server->handleAuthorizeRequest($request, $response, $is_authorized, $_SESSION['mailcow_cc_username']);
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
30
if ($is_authorized) {
Open commit View diff
30 if ($is_authorized) {
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
31
  unset($_SESSION['oauth2_request']);
Open commit View diff
31 unset($_SESSION['oauth2_request']);
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
32
  if ($GLOBALS['OAUTH2_FORGET_SESSION_AFTER_LOGIN'] === true) {
Open commit View diff
32 if ($GLOBALS['OAUTH2_FORGET_SESSION_AFTER_LOGIN'] === true) {
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
33
    session_unset();
Open commit View diff
33 session_unset();
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
34
    session_destroy();
Open commit View diff
34 session_destroy();
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
35
  }
Open commit View diff
35 }
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
36
  header('Location: ' . $response->getHttpHeader('Location'));
Open commit View diff
36 header('Location: ' . $response->getHttpHeader('Location'));
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
37
  exit;
Open commit View diff
37 exit;
same change 72ceeda

[Web] oauth authorize - added missing twig templating

Full commit hash
72ceeda8727010aed926ea72cae9b56388ab639e
Author
Kristian Feldsam <[email protected]>
Date
over 4 years ago
Selected line
38
}
Open commit View diff
38 }