Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/d0pare/aspnetcore.identity.neo4j

ASP.NET Core Identity provider based on Neo4j
https://github.com/d0pare/aspnetcore.identity.neo4j

aspnet-core aspnet-core-identity neo4j

Last synced: 29 days ago
JSON representation

ASP.NET Core Identity provider based on Neo4j

Awesome Lists containing this project

README

        

# AspNetCore.Identity.Neo4j

AspNetCore.Identity.Neo4j [Nuget library](https://www.nuget.org/packages/AspNetCore.Identity.Neo4j/) is using official [Neo4j.Driver](https://www.nuget.org/packages/Neo4j.Driver/) to connect to Neo4j graph database.

### Minimal setup

``` cs
public void ConfigureServices(IServiceCollection services)
{
services.AddSingleton(s => GraphDatabase.Driver(Configuration.GetConnectionString("DefaultConnection"), AuthTokens.Basic("neo4j", "neo4j")));
services.AddScoped(s => s.GetService().Session());

services.AddIdentity()
.AddNeo4jDataStores()
.AddDefaultTokenProviders();

...
}
```