{"id":22138970,"url":"https://github.com/cwaldbieser/httpd-oicd-test","last_synced_at":"2026-01-05T08:03:17.206Z","repository":{"id":233154978,"uuid":"785970232","full_name":"cwaldbieser/httpd-oicd-test","owner":"cwaldbieser","description":"Dockerized Apache2 mod_auth_oidc test","archived":false,"fork":false,"pushed_at":"2024-04-15T20:32:24.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T16:08:41.045Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cwaldbieser.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-04-13T03:29:37.000Z","updated_at":"2024-04-15T14:40:22.000Z","dependencies_parsed_at":"2024-04-14T07:10:22.217Z","dependency_job_id":null,"html_url":"https://github.com/cwaldbieser/httpd-oicd-test","commit_stats":null,"previous_names":["cwaldbieser/httpd-oicd-test"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwaldbieser%2Fhttpd-oicd-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwaldbieser%2Fhttpd-oicd-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwaldbieser%2Fhttpd-oicd-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwaldbieser%2Fhttpd-oicd-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cwaldbieser","download_url":"https://codeload.github.com/cwaldbieser/httpd-oicd-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245256779,"owners_count":20585968,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-01T20:13:07.883Z","updated_at":"2026-01-05T08:03:17.194Z","avatar_url":"https://github.com/cwaldbieser.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"##############################\n Apache mod_auth_oidc example\n##############################\n\nA simple Dockerized Apache2 web server protecting a folder with\nmod_auth_oidc.\n\n***************\n Prerequisites\n***************\n\n-  Docker\n\n***********************************\n Build and deploy the site locally\n***********************************\n\nYou need to create 3 text files:\n\n-  `client_id.txt`: contains the client ID\n-  `client_secret.txt`: contains the shared client secret\n-  `client_metadata.txt`: contains the URL of the OIDC provider metadata\n   URL\n\nclient secret. Then:\n\n.. code:: bash\n\n   $ make build\n   $ make run\n\nThe URL http://localhost:8080/ will display the site index. The\nprotected sever variables are what is really interesting for this\nexample so you can learn how to use REMOTE_USER, etc. in your apps.\nBelow are some examples of some useful OIDC variables:\n\n-  OIDC_CLAIM_acr: mfa-duo\n\n-  OIDC_CLAIM_amr: DuoSecurityAuthenticationHandler\n\n-  OIDC_CLAIM_attributes: {\"given_name\": \"Carl\", \"family_name\":\n   \"Waldbieser\", \"email\": \"waldbiec@example.net\", \"person_id\":\n   \"L01234567\"}\n\n-  OIDC_CLAIM_aud: testsite_client\n\n-  OIDC_CLAIM_auth_time: 1712967823\n\n-  OIDC_CLAIM_client_id: testsite_client\n\n-  OIDC_CLAIM_email: waldbiec@example.net\n\n-  OIDC_CLAIM_exp: 1713004649\n\n-  OIDC_CLAIM_family_name: Waldbieser\n\n-  OIDC_CLAIM_given_name: Carl\n\n-  OIDC_CLAIM_iat: 1712975849\n\n-  OIDC_CLAIM_id: waldbiec\n\n-  OIDC_CLAIM_iss: https://cas.example.net/cas/oidc\n\n-  OIDC_CLAIM_jti:\n   TGT-2-MseB9I59rYYW6WN5FIaHeQADUcC-Fl95VxANOezMOGH6-3cAbdM2Ju-1dozU7pQ-eU8-ip-10-2-7-161\n\n-  OIDC_CLAIM_nbf: 1712975549\n\n-  OIDC_CLAIM_nonce: 5ZXwj9xnXMIdH38LYEPNTBjrgE5LgSIZbXbra7kDXFk\n\n-  OIDC_CLAIM_preferred_username: waldbiec\n\n-  OIDC_CLAIM_service: http://localhost:8080/protected/redirect_uri\n\n-  OIDC_CLAIM_sid: 47a8b229321ffc8d3afc38aa7b37aec14444daa1\n\n-  OIDC_CLAIM_state: 5_TTeFHnXfpSKU7_n2Nj8Sdhdk0\n\n-  OIDC_CLAIM_sub: waldbiec\n\n-  OIDC_access_token: AT-15-IaworiRLvX6VvZnTQzZzn1uoUkBYGzBM\n\n-  OIDC_access_token_expires: 1713004649\n\n-  REMOTE_USER: waldbiec@cas.example.net/cas/oidc\n\nSupport for Multiple Providers\n==============================\n\nIf you frequently test with multiple OIDC providers, you can create the\n3 files with names:\n\n-  client_id.SLUG.txt\n-  client_secret.SLUG.txt\n-  client_metadata.SLUG.txt\n\nWhere \"SLUG\" should be replaced with a simple slug that describes the\nprovider (e.g. \"cas\"). Then run the `set_oidc_provider.sh` script with\nthe slug as an argument prior to executing the build and run steps.\n\n.. code:: bash\n\n   $ ./set_oidc_provider.sh cas\n   $ make build\n   $ make run\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwaldbieser%2Fhttpd-oicd-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcwaldbieser%2Fhttpd-oicd-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwaldbieser%2Fhttpd-oicd-test/lists"}