ASP NET Identity Manager database permissions

2019-09-16 03:41发布

I have got Identity Manager set up and running locally, working with ASP.NET Identity. I have a SQL Server 2012 database for the backend. 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'.

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.

I am running the app pool for identity manager under the AppPoolIdentity.

Appreciate any help.

1条回答
The star\"
2楼-- · 2019-09-16 04:01

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.

查看更多
登录 后发表回答