{"id":22011092,"url":"https://github.com/leanwit/authexample","last_synced_at":"2025-09-07T05:34:16.691Z","repository":{"id":73672681,"uuid":"190905035","full_name":"Leanwit/AuthExample","owner":"Leanwit","description":".Net Core project example with basic authentication between Razor Web Project and WebApi Project using different roles and permissions.","archived":false,"fork":false,"pushed_at":"2019-07-19T01:42:49.000Z","size":803,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-10T23:57:09.138Z","etag":null,"topics":["basic-authentication","csharp","netcore-mvc","netcore-webapi","netcore2","swagger"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Leanwit.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":"2019-06-08T15:38:13.000Z","updated_at":"2019-07-02T12:39:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa73dd40-1645-4610-bfd3-34ee795f1409","html_url":"https://github.com/Leanwit/AuthExample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Leanwit/AuthExample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leanwit%2FAuthExample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leanwit%2FAuthExample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leanwit%2FAuthExample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leanwit%2FAuthExample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leanwit","download_url":"https://codeload.github.com/Leanwit/AuthExample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leanwit%2FAuthExample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273997315,"owners_count":25204520,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["basic-authentication","csharp","netcore-mvc","netcore-webapi","netcore2","swagger"],"created_at":"2024-11-30T02:15:57.185Z","updated_at":"2025-09-07T05:34:16.663Z","avatar_url":"https://github.com/Leanwit.png","language":"C#","readme":"# AuthExample\n.Net Core project example with basic authentication between Razor Web Project and WebApi Project using different roles and permissions.\n\n[![Build status](https://ci.appveyor.com/api/projects/status/lc6do2hmf10ew2ca?svg=true)](https://ci.appveyor.com/project/Leanwit/authexample)\n\n# Getting Started\nAll commands described in this section will be executed in root project after cloning the repository.\n## Prerequisites\n[.Net Core 2.2](https://dotnet.microsoft.com/download)\n\n## Installing\n```\ndotnet build\n```\n\n## How to run\n##### WebApi\n```\ndotnet run --project src/WebApi/WebApi.csproj\n```\nWebApi run in https://localhost:5001 by default.\n\n##### Web\n```\ndotnet run --project src/Web/Web.csproj\n```\nWeb run in https://localhost:1000 by default.\n\nTo log in, you can see all users and password created by default in [_src/WebApi/Infrastructure/Persistence/Seed/UserDataGenerator.cs_](https://github.com/Leanwit/AuthExample/blob/master/src/WebApi/Infrastructure/Persistence/Seed/UserDataGenerator.cs).\n\nExamples:\n* admin:admin\n* pageone:pageone\n\n## Running tests\n```\ndotnet test\n```\nIt is also possible to execute tests per project.\n```\ndotnet test test/WebApi.Test\ndotnet test test/Web.Test\n```\n\nGet coverage value using msbuild.\n```\ndotnet test /p:CollectCoverage=true /p:Exclude=\"[xunit.*]*\n```\nor you can check the last build [here](https://ci.appveyor.com/project/Leanwit/authexample).\n# Next steps\n[Issue List](https://github.com/Leanwit/AuthExample/issues)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanwit%2Fauthexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleanwit%2Fauthexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanwit%2Fauthexample/lists"}