Files
.github
data
Dockerfiles
assets
conf
hooks
web
api
css
fonts
img
inc
js
lang
modals
oauth
authorize.php
profile.php
token.php
_rspamderror.php
_status.502.html
admin.php
autoconfig.php
autodiscover-json.php
autodiscover.php
debug.php
edit.php
favicon.png
index.php
json_api.php
mailbox.php
mobileconfig.php
qhandler.php
quarantine.php
resource.php
robots.txt
sogo-auth.php
user.php
helper-scripts
.drone.yml
.editorconfig
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
docker-compose.yml
generate_config.sh
update.sh
mailcow-dockerized/data/web/oauth/token.php
andryyy 1c35002505 [Web] Do not allow to add domain admin for non existing domain
[Web] oAuth2 implementation (wip)
2019-10-02 19:00:36 +02:00

5 lines
183 B
PHP

<?php
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
$request = OAuth2\Request::createFromGlobals();
$oauth2_server->handleTokenRequest($request)->send();