Skip to content
Permalink
Browse files

Documentation for OAuth2 server testing

  • Loading branch information
elpaso committed Jun 25, 2018
1 parent 5d724fc commit 3f27eaa37869ed036305fe687c4010c0cb7a0e8a
Showing with 7 additions and 6 deletions.
  1. +7 −6 tests/src/python/qgis_wrapped_server.py
@@ -100,11 +100,13 @@
OAuth2:
QGIS_SERVER_PORT=8443 \
QGIS_SERVER_HOST=localhost \
QGIS_SERVER_OAUTH2_AUTHORITY=/home/$USER/dev/QGIS/tests/testdata/auth_system/certs_keys/chain_subissuer-issuer-root.pem \
QGIS_SERVER_OAUTH2_CERTIFICATE=/home/$USER/dev/QGIS/tests/testdata/auth_system/certs_keys/localhost_ssl_cert.pem \
QGIS_SERVER_OAUTH2_KEY=/home/$USER/dev/QGIS/tests/testdata/auth_system/certs_keys/localhost_ssl_key.pem \
python3 /home/$USER/dev/QGIS/tests/src/python/qgis_wrapped_server.py
QGIS_SERVER_HOST=127.0.0.1 \
QGIS_SERVER_OAUTH2_AUTHORITY=/home/$USER/dev/QGIS/tests/testdata/auth_system/certs_keys/chains_subissuer-issuer-root_issuer2-root2.pem \
QGIS_SERVER_OAUTH2_CERTIFICATE=/home/$USER/dev/QGIS/tests/testdata/auth_system/certs_keys/127_0_0_1_ssl_cert.pem \
QGIS_SERVER_OAUTH2_KEY=/home/$USER/dev/QGIS/tests/testdata/auth_system/certs_keys/127_0_0_1_ssl_key.pem \
python3 \
/home/$USER/dev/QGIS/tests/src/python/qgis_wrapped_server.py
.. note:: This program is free software; you can redistribute it and/or modify
@@ -453,7 +455,6 @@ class ThreadedHTTPServer(ThreadingMixIn, HTTPServer):
server = ThreadedHTTPServer((QGIS_SERVER_HOST, QGIS_SERVER_PORT), Handler)
else:
server = HTTPServer((QGIS_SERVER_HOST, QGIS_SERVER_PORT), Handler)
server = HTTPServer((QGIS_SERVER_HOST, QGIS_SERVER_PORT), Handler)
# HTTPS is enabled if any of PKI or OAuth2 are enabled too
if HTTPS_ENABLED:
if QGIS_SERVER_OAUTH2_AUTH:

0 comments on commit 3f27eaa

Please sign in to comment.
You can’t perform that action at this time.