I'm new at neo4j and I want to use neo4j.Asp.Net.Identity for authentication and authorization but I can't find any sample that implements that.Anybody knows how can I find a sample for that? I'm also want to use Token-Base authentication for authentication and authorization.
我是neo4j的新手,我想使用neo4j.Asp.Net.Identity进行身份验证和授权,但我找不到任何实现它的示例。有人知道如何找到样本吗?我还想使用令牌基础身份验证进行身份验证和授权。
2 个解决方案
#1
The project is here: https://github.com/assimoes/Neo4j.AspNet.Identity the problem you'll have is that it doesn't implement the third-party authentication - i.e. you can't just drop it in and it'll work with something like MVC's Facebook/Twitter stuff.
该项目在这里:https://github.com/assimoes/Neo4j.AspNet.Identity你将遇到的问题是它没有实现第三方认证 - 即你不能只是放入它并且它将使用像MVC的Facebook / Twitter这样的东西。
Your best bet is to get the code from GitHub and reference the project directly as you're going to have to implement some new interfaces, and personally - I would change the implementation of the data structure - roles, authentication tokens don't work (if I remember correctly) - so you'd probably need to fix them.
您最好的选择是从GitHub获取代码并直接引用项目,因为您将不得不实现一些新的接口,而且我个人 - 我会更改数据结构的实现 - 角色,身份验证令牌不起作用(如果我没记错的话 - 所以你可能需要修理它们。
You might actually be better off using my fork: https://github.com/cskardon/Neo4j.AspNet.Identity which I've been playing around with for a while in an MVC5 project and it's working so far (I'll create a demo version of the MVC5 soonish).
你可能实际上最好使用我的分支:https://github.com/cskardon/Neo4j.AspNet.Identity我已经在MVC5项目中玩了一段时间它到目前为止工作(我将创建很快就会推出MVC5的演示版本。
#2
There is now a NuGet package for it. Click on the link in the Nuget documentation, and it should take you to the appropriate web-site.
现在有一个NuGet包。单击Nuget文档中的链接,它将带您进入相应的网站。
#1
The project is here: https://github.com/assimoes/Neo4j.AspNet.Identity the problem you'll have is that it doesn't implement the third-party authentication - i.e. you can't just drop it in and it'll work with something like MVC's Facebook/Twitter stuff.
该项目在这里:https://github.com/assimoes/Neo4j.AspNet.Identity你将遇到的问题是它没有实现第三方认证 - 即你不能只是放入它并且它将使用像MVC的Facebook / Twitter这样的东西。
Your best bet is to get the code from GitHub and reference the project directly as you're going to have to implement some new interfaces, and personally - I would change the implementation of the data structure - roles, authentication tokens don't work (if I remember correctly) - so you'd probably need to fix them.
您最好的选择是从GitHub获取代码并直接引用项目,因为您将不得不实现一些新的接口,而且我个人 - 我会更改数据结构的实现 - 角色,身份验证令牌不起作用(如果我没记错的话 - 所以你可能需要修理它们。
You might actually be better off using my fork: https://github.com/cskardon/Neo4j.AspNet.Identity which I've been playing around with for a while in an MVC5 project and it's working so far (I'll create a demo version of the MVC5 soonish).
你可能实际上最好使用我的分支:https://github.com/cskardon/Neo4j.AspNet.Identity我已经在MVC5项目中玩了一段时间它到目前为止工作(我将创建很快就会推出MVC5的演示版本。
#2
There is now a NuGet package for it. Click on the link in the Nuget documentation, and it should take you to the appropriate web-site.
现在有一个NuGet包。单击Nuget文档中的链接,它将带您进入相应的网站。