{"id":22882377,"url":"https://github.com/loresoft/cosmos.identity","last_synced_at":"2025-05-07T04:48:09.677Z","repository":{"id":37861539,"uuid":"329973349","full_name":"loresoft/Cosmos.Identity","owner":"loresoft","description":"Cosmos DB provider for ASP.NET Core Identity framework","archived":false,"fork":false,"pushed_at":"2025-05-06T02:14:21.000Z","size":857,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T04:48:06.320Z","etag":null,"topics":["cosmos","cosmosdb","documentdb","identity","identity-framework"],"latest_commit_sha":null,"homepage":"","language":"C#","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/loresoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"loresoft"}},"created_at":"2021-01-15T17:04:00.000Z","updated_at":"2025-05-06T02:14:19.000Z","dependencies_parsed_at":"2024-10-22T05:21:28.690Z","dependency_job_id":"5915c039-c606-49df-8b12-da44eef28678","html_url":"https://github.com/loresoft/Cosmos.Identity","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loresoft%2FCosmos.Identity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loresoft%2FCosmos.Identity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loresoft%2FCosmos.Identity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loresoft%2FCosmos.Identity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loresoft","download_url":"https://codeload.github.com/loresoft/Cosmos.Identity/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252816523,"owners_count":21808702,"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":["cosmos","cosmosdb","documentdb","identity","identity-framework"],"created_at":"2024-12-13T18:17:14.633Z","updated_at":"2025-05-07T04:48:09.653Z","avatar_url":"https://github.com/loresoft.png","language":"C#","readme":"# Cosmos.Identity\nCosmos DB provider for ASP.NET Core Identity framework\n\n[![Build Project](https://github.com/loresoft/Cosmos.Identity/actions/workflows/dotnet.yml/badge.svg)](https://github.com/loresoft/Cosmos.Identity/actions/workflows/dotnet.yml)\n\n[![NuGet Version](https://img.shields.io/nuget/v/Cosmos.Identity.svg?style=flat-square)](https://www.nuget.org/packages/Cosmos.Identity/)\n\n[![Coverage Status](https://coveralls.io/repos/github/loresoft/Cosmos.Identity/badge.svg?branch=main)](https://coveralls.io/github/loresoft/Cosmos.Identity?branch=main)\n\n## Download\n\nThe Cosmos.Identity library is available on nuget.org via package name `Cosmos.Identity`.\n\nTo install Cosmos.Identity, run the following command in the Package Manager Console\n\n    PM\u003e Install-Package Cosmos.Identity\n    \nMore information about NuGet package available at\n\u003chttps://nuget.org/packages/Cosmos.Identity\u003e\n\n## Usage\n\nappsettings.json configuration\n\n```json\n{\n  \"CosmosRepository\": {\n    \"ConnectionString\": \"AccountEndpoint=https://localhost:8081/;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==\",\n    \"DatabaseId\": \"SampleWebsite\",\n    \"OptimizeBandwidth\": false,\n    \"AllowBulkExecution\": true\n  }\n}\n```\n\nStartup.cs\n\n```c#\nusing Cosmos.Identity;\nusing Microsoft.AspNetCore.Builder;\nusing Microsoft.AspNetCore.Hosting;\nusing Microsoft.AspNetCore.Identity;\nusing Microsoft.Extensions.Configuration;\nusing Microsoft.Extensions.DependencyInjection;\nusing Microsoft.Extensions.Hosting;\nusing IdentityRole = Cosmos.Identity.IdentityRole;\nusing IdentityUser = Cosmos.Identity.IdentityUser;\n\nnamespace Sample.Website\n{\n    public class Startup\n    {\n        public Startup(IConfiguration configuration)\n        {\n            Configuration = configuration;\n        }\n\n        public IConfiguration Configuration { get; }\n\n        public void ConfigureServices(IServiceCollection services)\n        {\n            services.AddCosmosRepository();\n\n            services\n                .AddIdentity\u003cIdentityUser, IdentityRole\u003e()\n                .AddCosmosStores()\n                .AddDefaultUI()\n                .AddDefaultTokenProviders();\n\n            services.AddRazorPages();\n        }\n\n        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)\n        {\n            app.UseHttpsRedirection();\n            app.UseStaticFiles();\n\n            app.UseRouting();\n\n            app.UseAuthentication();\n            app.UseAuthorization();\n\n            app.UseEndpoints(endpoints =\u003e\n            {\n                endpoints.MapRazorPages();\n            });\n        }\n    }\n}\n```\n","funding_links":["https://github.com/sponsors/loresoft"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floresoft%2Fcosmos.identity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floresoft%2Fcosmos.identity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floresoft%2Fcosmos.identity/lists"}