{"id":22009726,"url":"https://github.com/zitadel/example-apache2","last_synced_at":"2025-09-02T22:37:04.513Z","repository":{"id":189305572,"uuid":"679695279","full_name":"zitadel/example-apache2","owner":"zitadel","description":"Minimum ZITADEL integration with Apache2","archived":false,"fork":false,"pushed_at":"2023-09-15T17:01:52.000Z","size":847,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-28T14:19:22.822Z","etag":null,"topics":["apache2","authentication","oidc","pkce","zitadel"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/zitadel.png","metadata":{"files":{"readme":"README.md","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,"publiccode":null,"codemeta":null}},"created_at":"2023-08-17T12:13:27.000Z","updated_at":"2023-09-15T17:04:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"966902d3-fc80-4662-8bb1-cc126ef301a6","html_url":"https://github.com/zitadel/example-apache2","commit_stats":null,"previous_names":["mffap/zitadel-apache2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zitadel%2Fexample-apache2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zitadel%2Fexample-apache2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zitadel%2Fexample-apache2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zitadel%2Fexample-apache2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zitadel","download_url":"https://codeload.github.com/zitadel/example-apache2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245070025,"owners_count":20556042,"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":["apache2","authentication","oidc","pkce","zitadel"],"created_at":"2024-11-30T02:10:34.814Z","updated_at":"2025-03-23T07:28:36.437Z","avatar_url":"https://github.com/zitadel.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZITADEL OpenID Authentication Apache\n\nFor now, this is just a basic example. Needs some more love and review.\n\n## Configure\n\n### Setup PKCE client in ZITADEL\n\n- Go to your organization and setup a new application with the type PKCE\n- When created go to the \"Redirect Settings\" and *enable Development Mode*\n- Add the Redirect Uri `http://localhost:8080/secure/callback`\n- Add the Post Logout Uri `http://localhost:8080/index.html`\n![Configuration](/img/configuration.png)\n![Redirect Settings](/img/redirect_settings.png)\n\nYou can find the url to your discovery endpoint under \"URLs\":\n![Discovery Endpoint](/img/urls.png)\n\n### Configure Apache2\n\n1. Rename `example.auth_openidc-httpd.conf` to `auth_openidc-httpd.conf`\n2. Update the values in `auth_openidc-httpd.conf` with values from ZITADEL.\n\nauth_openidc-httpd.conf\n\n```jsx\nOIDCProviderMetadataURL https://\u003cyour_domain\u003e.zitadel.cloud/.well-known/openid-configuration\nOIDCClientID \u003cclient_id, eg 227791....@apache_test\u003e\n# OIDCRedirectURI is a vanity URL that must point to a path protected by this module but must NOT point to any content\nOIDCRedirectURI \u003credirect_uri, eg http://localhost:8080/secure/callback\u003e\nOIDCCryptoPassphrase \u003cvery-secure-phrase\u003e\n```\n\n## How to run\n\n```bash\ndocker build -t my-apache2 .\ndocker run -dit --name my-running-app -p 8080:80 my-apache2\n``````\n\nOpen your [browser](http://localhost:8080) and click on the link to the secure route.\n\n## References\n\n- https://github.com/OpenIDC/mod_auth_openidc/wiki#16-what-does-a-minimal-apache-configuration-file-look-like\n- https://github.com/OpenIDC/mod_auth_openidc/blob/master/auth_openidc.conf","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzitadel%2Fexample-apache2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzitadel%2Fexample-apache2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzitadel%2Fexample-apache2/lists"}