Back to home page

EIC code displayed by LXR

 
 

    


Warning, /swf-monitor/config/apache/api-token-pass.conf is written in an unsupported language. File is not indexed.

0001 # SWF Monitor API configuration: allow DRF Token auth and avoid OIDC login redirects
0002 # This layer ensures the Authorization header reaches Django and prevents
0003 # mod_auth_openidc from redirecting API requests to the login flow.
0004 
0005 # Make sure Django (DRF) receives the Authorization header
0006 WSGIPassAuthorization On
0007 
0008 # For all API endpoints under the /swf-monitor mount:
0009 <LocationMatch "^/swf-monitor/api/">
0010     # Always allow access at Apache layer; DRF will enforce Token auth
0011     Require all granted
0012 
0013     # If mod_auth_openidc is active globally, pass unauthenticated requests
0014     # through to the application without redirecting to the IdP
0015     <IfModule mod_auth_openidc.c>
0016         AuthType openid-connect
0017         OIDCUnAuthAction pass
0018     </IfModule>
0019 </LocationMatch>