{"id":20375559,"url":"https://github.com/benjaminwfox/nextjs-azureb2c-nextauth","last_synced_at":"2025-04-12T07:25:12.223Z","repository":{"id":88226356,"uuid":"290080661","full_name":"BenjaminWFox/nextjs-azureb2c-nextauth","owner":"BenjaminWFox","description":"Demo app showing Azure B2C Authentication in Next.js with NextAuth.js","archived":false,"fork":false,"pushed_at":"2020-08-25T14:34:12.000Z","size":161,"stargazers_count":11,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T02:42:37.343Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/BenjaminWFox.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":"2020-08-25T01:27:20.000Z","updated_at":"2024-12-13T18:39:03.000Z","dependencies_parsed_at":"2023-03-13T18:28:46.638Z","dependency_job_id":null,"html_url":"https://github.com/BenjaminWFox/nextjs-azureb2c-nextauth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminWFox%2Fnextjs-azureb2c-nextauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminWFox%2Fnextjs-azureb2c-nextauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminWFox%2Fnextjs-azureb2c-nextauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminWFox%2Fnextjs-azureb2c-nextauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenjaminWFox","download_url":"https://codeload.github.com/BenjaminWFox/nextjs-azureb2c-nextauth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248532177,"owners_count":21119870,"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-15T01:31:35.761Z","updated_at":"2025-04-12T07:25:12.217Z","avatar_url":"https://github.com/BenjaminWFox.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Next.js / Azure B2C / NextAuth.js\n\nThis is an example repo showing how to configure authentication via Azure B2C in Next.js\n\nThe `main` branch has the complete code. You can also take a look at [this pull request](https://github.com/BenjaminWFox/nextjs-azureb2c-nextauth/pull/1/files) to see the code diff required to create basic working authentication. As a followup, take a look at [this pull request](https://github.com/BenjaminWFox/nextjs-azureb2c-nextauth/pull/3/files) which has examples for two options of signing out, depending on your needs.\n\n## Local setup\n\nYou should be able to run this locally *if* you have already set up everything in azure. You will need to rename `.env.example` to `.env` and update the values to match your Azure B2C Tenant, User Flow, and App Registration values.\n\n## Getting Started\n\nThis is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).\n\nFirst, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminwfox%2Fnextjs-azureb2c-nextauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenjaminwfox%2Fnextjs-azureb2c-nextauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminwfox%2Fnextjs-azureb2c-nextauth/lists"}