{"id":28100688,"url":"https://github.com/boburmirzo/apisix-authgear-oidc-full-stack-auth","last_synced_at":"2025-06-20T11:07:30.733Z","repository":{"id":190132261,"uuid":"682003759","full_name":"Boburmirzo/apisix-authgear-oidc-full-stack-auth","owner":"Boburmirzo","description":"A full-stack authentication app with APISIX, Authgear and OIDC","archived":false,"fork":false,"pushed_at":"2024-03-17T09:03:32.000Z","size":13,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-13T18:49:24.534Z","etag":null,"topics":["apisix","authentication","authgear","docker","javascript","oidc"],"latest_commit_sha":null,"homepage":"https://docs.api7.ai/apisix/documentation","language":"JavaScript","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/Boburmirzo.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,"zenodo":null}},"created_at":"2023-08-23T08:23:20.000Z","updated_at":"2024-12-24T23:06:10.000Z","dependencies_parsed_at":"2023-08-23T11:18:40.967Z","dependency_job_id":"dad6aaed-0d46-449d-8335-1a045ea7572e","html_url":"https://github.com/Boburmirzo/apisix-authgear-oidc-full-stack-auth","commit_stats":null,"previous_names":["boburmirzo/apisix-authgear-oidc-full-stack-auth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Boburmirzo/apisix-authgear-oidc-full-stack-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boburmirzo%2Fapisix-authgear-oidc-full-stack-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boburmirzo%2Fapisix-authgear-oidc-full-stack-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boburmirzo%2Fapisix-authgear-oidc-full-stack-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boburmirzo%2Fapisix-authgear-oidc-full-stack-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Boburmirzo","download_url":"https://codeload.github.com/Boburmirzo/apisix-authgear-oidc-full-stack-auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boburmirzo%2Fapisix-authgear-oidc-full-stack-auth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260933201,"owners_count":23084951,"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":["apisix","authentication","authgear","docker","javascript","oidc"],"created_at":"2025-05-13T18:37:55.689Z","updated_at":"2025-06-20T11:07:25.720Z","avatar_url":"https://github.com/Boburmirzo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to build a full-stack authentication app\n\nThis repo demonstrates how to develop a full-stack authentication flow for a web application using [Apache APISIX](https://apisix.apache.org/), [Authgear](https://www.authgear.com/) and [OIDC](https://openid.net/developers/how-connect-works/) (OpenID Connect).\n\n## Full-stack Authentication App with APISIX, Authgear and OIDC\n\nFor the demo, we used Docker to install and run 3 components (backend, API Gateway and frontend) with a single command. We employed [ExpressJS](https://expressjs.com/) for the frontend web app, hosting our single page app at [localhost:3000](http://localhost:3000/). The APISIX Gateway can be accessed at [localhost:9080](http://localhost:9080/), while our backend API (it can be any API you build using Python, Java, NodeJS and etc.) is set up on [localhost:9081](http://localhost:9081/).\n\n## How to run the project\n\n## Prerequisites\n\nBefore you begin, you'll need the following:\n\n- A **free Authgear account**. [Sign up](https://oursky.typeform.com/to/S5lvI8rN) if you don't have one already.\n- **Configure an application in Authgear**. If you don't have any applications that use Authgear, you can create a new Authgear OIDC Client application by following this [guide](https://docs.authgear.com/how-to-guide/authenticate/oidc-provider#setting-up-authgear-in-the-portal).\n- [Docker](https://docs.docker.com/get-docker/) is used to install all services.\n\nStart by cloning the project into your local machine:\n\n```bash\ngit clone https://github.com/Boburmirzo/apisix-authgear-oidc-full-stack-auth.git\n```\n\nMake the project directory your current working directory:\n\n```bash\ncd apisix-authgear-oidc-full-stack-auth\n```\n\nIn the root directory of your project where Docker compose yaml file, create a file `.env` with the following environment variables:\n\n```bash\nCLIENT_ID={AUTHGEAR_APP_CLIENT_ID}\nCLIENT_SECRET={AUTHGEAR_APP_CLIENT_SECRET}\nISSUER={AUTHGEAR_ISSUER}\nREDIRECT_URI=http://localhost:3000\n```\n\nReplace values in the brackets with your Authgear app settings values from **Configure Authgear** such as `Issuer`, `ClientId`, `ClientSecret`\n\nAfter you added the environment file, run the `docker compose up` command from the root directory.\n\n## Testing authentication flow\n\nAfter the installation went successful, browse to [localhost:3000](http://localhost:3000/). You should be redirected to the Authgear login screen. If you are first time authenticating, you will be asked to sign up first.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboburmirzo%2Fapisix-authgear-oidc-full-stack-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboburmirzo%2Fapisix-authgear-oidc-full-stack-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboburmirzo%2Fapisix-authgear-oidc-full-stack-auth/lists"}