简体   繁体   English

ASP NET Identity Manager数据库权限

[英]ASP NET Identity Manager database permissions

I have got Identity Manager set up and running locally, working with ASP.NET Identity. 我已经安装了Identity Manager,并在本地运行并使用ASP.NET Identity。 I have a SQL Server 2012 database for the backend. 我有一个用于后端的SQL Server 2012数据库。 I can create a user and get a list back, however whenever I try and create a role, edit a user or list the roles i get the following: 我可以创建一个用户并返回一个列表,但是,每当我尝试创建角色,编辑用户或列出角色时,我都会得到以下信息:

CREATE DATABASE permission denied in database 'master'. CREATE DATABASE权限在数据库“ master”中被拒绝。

The user i have in the connection string is a valid SQL login and is a user on the database that Identity Manager is pointed at, (and obviously can login as i can see the user in the database table) however it seems like for these actions the database is claiming the user connecting hasn't got permission. 我在连接字符串中拥有的用户是有效的SQL登录名,并且是Identity Manager所指向的数据库上的用户(并且显然可以登录,因为我可以在数据库表中看到该用户),但是似乎需要执行这些操作数据库声称连接的用户未获得许可。

I am running the app pool for identity manager under the AppPoolIdentity. 我正在AppPoolIdentity下为身份管理器运行应用程序池。

Appreciate any help. 感谢任何帮助。

So issues were due to first of all me not passing my context to the role store (i was passing it to my user store however) and then making sure the identity manager service was getting my role manager. 因此出现问题是由于首先我没有将上下文传递给角色存储(但是我将其传递给了用户存储),然后确保身份管理器服务正在获取我的角色管理器。 After i went through all the dependencies carefully i got it all working with no issues. 在我仔细检查了所有依赖项之后,我发现所有工作都没有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM