{"id":17882400,"url":"https://github.com/ealsur/auth0swagger","last_synced_at":"2025-03-22T12:33:19.973Z","repository":{"id":110731439,"uuid":"65432847","full_name":"ealsur/auth0swagger","owner":"ealsur","description":"Swagger documented API and Autorest generated client with Auth0","archived":false,"fork":false,"pushed_at":"2017-01-27T19:55:35.000Z","size":59,"stargazers_count":22,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T11:24:23.042Z","etag":null,"topics":["asp-net-core","auth0","authorization","autorest","swagger","web-api"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ealsur.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-11T02:48:18.000Z","updated_at":"2023-08-29T11:01:50.000Z","dependencies_parsed_at":"2023-04-03T19:02:26.003Z","dependency_job_id":null,"html_url":"https://github.com/ealsur/auth0swagger","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/ealsur%2Fauth0swagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ealsur%2Fauth0swagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ealsur%2Fauth0swagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ealsur%2Fauth0swagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ealsur","download_url":"https://codeload.github.com/ealsur/auth0swagger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244959444,"owners_count":20538625,"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":["asp-net-core","auth0","authorization","autorest","swagger","web-api"],"created_at":"2024-10-28T12:54:41.360Z","updated_at":"2025-03-22T12:33:19.957Z","avatar_url":"https://github.com/ealsur.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth0 enabled Web App and API with Swagger\n\nThis repository consists of two Web applications, both using [Auth0](https://auth0.com) to identify users.\n\nThe [Web API](./swaggerapi) is built on ASP.NET Core using [Swagger](http://swagger.io) to document its methods and models and provide an easier way to try it with a clear UI.\n\n![Swagger UI](./images/swagger.png)\n\nThe [Web App](./swaggerweb) also built on ASP.NET Core is using [Autorest](https://github.com/Azure/autorest) to auto-generate a client based on the Web API Swagger documentation.\n\nBoth applications have a configuration file that you will need to fill with your [Auth0 Account details \n](https://manage.auth0.com/).\n\nIn the [Web API appsettings.json](./swaggerapi/appsettings.json), you need to fill your Auth0 domain and client id.\n\n    {\n      \"Auth0\": {\n        \"Domain\": \"{YOUR_AUTH0_DOMAIN}\",\n        \"ClientId\": \"{YOUR_AUTH0_CLIENTID}\"\n      }\n    }\n\n\u003e Note: You can use `appsettings.Development.json` and `appsettings.Production.json` to store your configuration data. Make sure to configure `.gitignore` to not include them in your repository though\n\nIn the [Web App appsettings.json](./swaggerweb/appsettings.json), you need to fill some extra values plus the CallbackUrl, which should be equal to your Web App running domain.\n\n    {\n     \"Auth0\": {\n        \"Domain\": \"{YOUR_AUTH0_DOMAIN}\",\n        \"ClientId\": \"{YOUR_AUTH0_CLIENTID}\",\n        \"ClientSecret\": \"{YOUR_AUTH0_CLIENTSECRET}\",\n        \"CallbackUrl\": \"http://localhost:5001/signin-auth0\"\n      } \n    }\n\n## Full Article\nThe article describing this repository and step-by-step guide can be found at [Auth0's blog](https://auth0.com/blog/aspnet-core-apis-with-swagger-and-autorest/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fealsur%2Fauth0swagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fealsur%2Fauth0swagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fealsur%2Fauth0swagger/lists"}