Add debug config option

This config option enables debug logging for the configured
LocationMatch section in Apache.
This commit is contained in:
Felipe Reyes 2022-08-09 13:19:54 -04:00
parent e3c13878a7
commit 8af65a0514
3 changed files with 10 additions and 1 deletions

View File

@ -5,3 +5,6 @@
.coverage .coverage
__pycache__/ __pycache__/
.stestr .stestr
*~
\#*
*.swp

View File

@ -1,4 +1,9 @@
options: options:
debug:
default: False
type: boolean
description: |
Enable debug logging.
remote-id-attribute: remote-id-attribute:
default: 'HTTP_OIDC_SUB' default: 'HTTP_OIDC_SUB'
type: string type: string

View File

@ -39,6 +39,7 @@ OICDRemoteUserClaim {{ options.oidc_remote_user_claim }}
<LocationMatch /v3/OS-FEDERATION/identity_providers/{{ options.idp_id }}/protocols/{{ options.protocol_id }}/auth> <LocationMatch /v3/OS-FEDERATION/identity_providers/{{ options.idp_id }}/protocols/{{ options.protocol_id }}/auth>
AuthType {{ options.auth_type }} AuthType {{ options.auth_type }}
Require valid-user Require valid-user
{% if options.debug -%}
LogLevel debug LogLevel debug
{% endif -%}
</LocationMatch> </LocationMatch>