{"id":22066021,"url":"https://github.com/adyanth/portable-oidc","last_synced_at":"2025-05-13T01:54:12.594Z","repository":{"id":104080710,"uuid":"471964319","full_name":"adyanth/portable-oidc","owner":"adyanth","description":"Portable, pluggable and exportable OIDC stack to protect any application. In docker and Kubernetes flavours.","archived":false,"fork":false,"pushed_at":"2022-03-20T15:41:54.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-06T16:40:23.986Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adyanth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-03-20T11:51:00.000Z","updated_at":"2022-12-22T06:44:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e4b40ed-5aa7-4de7-bdad-b104d16489a6","html_url":"https://github.com/adyanth/portable-oidc","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"ccb216e42c55830d3ffb0d90a55a97521700a7a1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adyanth%2Fportable-oidc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adyanth%2Fportable-oidc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adyanth%2Fportable-oidc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adyanth%2Fportable-oidc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adyanth","download_url":"https://codeload.github.com/adyanth/portable-oidc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253470628,"owners_count":21913705,"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-11-30T19:23:16.523Z","updated_at":"2025-05-13T01:54:12.575Z","avatar_url":"https://github.com/adyanth.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Portable OIDC Authentication stack\n\nThis repository provides a portable, pluggable and exportable OIDC stack to protect any application in both docker and Kubernetes flavours.\n\n## Tech stack\n\n1. Router: The opensource [Traefik](https://doc.traefik.io/traefik/) router is used to enforce authentication using its [`forwardAuth` middleware](https://doc.traefik.io/traefik/middlewares/http/forwardauth/).\n\n2. OIDC Proxy: The [`traefik-forward-auth`](https://github.com/thomseddon/traefik-forward-auth) is used to connect to any OAuth 2.0/OIDC supported Identity Provider. Additionally, it supports authorization rules if needed.\n\n3. `docker-compose`: A compose stack is provided that can be used as a base for integrating with other applications.\n\n4. Kubernetes: A kustomization manifest is provided that uses the configs and static manifests to deploy the same stack in Kubernetes with either a NodePort or integrating to an existing Ingress controller.\n\n## Usage\n\nThis repository deploys a sample app using [`containous/whoami`](https://github.com/traefik/whoami) which also helps in visalization of the headers that will be available after login.\n\n1. Modify the [`configs/oidc.env`](configs/oidc.env) and [`configs/oidc.secret.env`](configs/oidc.secret.env) to set the Identity Provider information. More details are available in [`traefik-forward-auth`'s configuration guide](https://github.com/thomseddon/traefik-forward-auth#configuration).\n\n2. If you need HTTPS with a valid SSL certificate in case of docker, or using NodePort in Kubernetes (not needed when using Ingress), follow the steps below.\n    * Add `tls.crt` and `tls.key` files to the [`certs/`](certs/) folder.\n    * Modify the [`configs/dynamic/config.yaml`](configs/dynamic/config.yaml) to uncomment the TLS section on top.\n    * In case of Kubernetes, uncomment the `traefik-certs` in the `patchesStrategicMerge` and `secretGenerator` section of [`kustomization.yaml`](kustomization.yaml).\n\n3. Deploy the stack. For Kubernetes, this deploys to the default namespace. You can change this in the [`kustomization.yaml`](kustomization.yaml).\n    * Docker: `docker-compose up -d`\n    * Kubernetes: `kubectl apply -k .`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadyanth%2Fportable-oidc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadyanth%2Fportable-oidc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadyanth%2Fportable-oidc/lists"}