Questions tagged [rhino-security]

Rhino Security is a row level security framework for NHibernate.

26 questions
6
votes
1 answer

How to implement C# Rhino Security

I am trying to implement Rhino Security, i have managed to find a couple tutorials but they do not give enough information to completely understand it, i was wondering if anyone knows of a good source where to learn about Rhino Security from. Or…
Michal Ciechan
  • 13,492
  • 11
  • 76
  • 118
4
votes
2 answers

NHibernate with Rhino Security - Illegally attempted to associate a proxy with two open Sessions

I am using Rhino Security as my security layer on top of NHibernate in an ASP.NET MVC 3 application. When I attempt to delete a secure entity Rhino security fires off an OnPreDelete method used to clean up corresponding data in the database. At this…
JP.
  • 5,536
  • 7
  • 58
  • 100
4
votes
2 answers

Rhino.Security: second-level cache is never hit for DetachedCriteria

I've implemented a solution which involves Rhino.Security to manage user/roles/permissions. Since I want to check if a user is authorized to access a controller action, I've implemented a custom action filter: public class AuthorizationAttribute :…
LeftyX
  • 35,328
  • 21
  • 132
  • 193
4
votes
3 answers

Finding authorization framework to be used on a ASP.NET MVC project

I have a asp.net mvc project and persistent is handled by repositories . Form authentication is used. Now I need implement authorization . For example , I need to ensure a manager user can only open his/her taskes and assign workers to the taskes. …
dan_l
  • 1,692
  • 2
  • 23
  • 40
4
votes
3 answers

How to configure sandbox security in in Rhino JavaScript engine

I want to interpret html pages scripts, but want to disable any posibility of harming my computer. Is there are any official tutorial or example how to configure such feature? (i dont find it in offcial site)
yura
  • 14,489
  • 21
  • 77
  • 126
3
votes
1 answer

Nhibernate and SetCacheable with second level cache

I am using Rhino.Security repository to manage my users/roles. The process of creation, deletion and association works fine but I am facing a problem when I query using one method: GetAssociatedUsersGroupFor. The first time I call the method I don't…
LeftyX
  • 35,328
  • 21
  • 132
  • 193
2
votes
1 answer

Rhino Security , getting all usergroups

I am using ayende's Rhino Security . Is there any method to get a list of usergroups using the security framework ?
dan_l
  • 1,692
  • 2
  • 23
  • 40
2
votes
1 answer

Rhino.Security and IEntityInformationExtractor

I've recently downloaded Rhino.Security and I am trying to implement permissions on a entity. Since I like Ninject (v2) I would like to put together a simple example to start with. In my NinjectModule I've bound the repository and the services:…
LeftyX
  • 35,328
  • 21
  • 132
  • 193
2
votes
1 answer

How do I actually use Rhino Security to secure my entities?

My question is related as to HOW and WHEN should I use the AuthorizationRepository? I guess that I should have some way in my application to maintain my user roles (user groups in rhino security terms) and the relations between users and user…
sabanito
  • 1,501
  • 1
  • 12
  • 17
2
votes
1 answer

Integrating Rhino Security with Asp.net membership providers

How does Rhino security gel with the asp.net membership providers? The reason why I am asking is because AFAIK if I need to use attributes [Authorize] then I should be implementing or extending the asp.net membership providers. In my case as I…
Quintin Par
  • 15,862
  • 27
  • 93
  • 146
2
votes
2 answers

Rhino Security implementation for use case "user can only see entities for customers assigned to him"

We're building/designing next generation of our sales/ordering/CRM system which comprises of entities like customer (customer hierarchy in particular), order, promotion action, ... Each user of the system should have assigned one or more…
Buthrakaur
  • 1,821
  • 3
  • 23
  • 35
1
vote
2 answers

Porting Rhino Security to Entity Framework - Why is it not there already?

I am using (Code First) Entity Framework 4.3 for an ASP.NET MVC project, and wanted to implement granular Permission based authorization features as provided by Rhino Security Though it is the only such Permission based Lib available, but it's not…
1
vote
1 answer

Remove additional function from Rhino shell

I want to use Rhino as a sandbox to run user supplied scripts on a server. I want to do that from PHP, which doesn't have Java bindings any more, so I have to use the command line interface (Rhino shell). Unfortunately the Rhino shell adds some…
AndreKR
  • 32,613
  • 18
  • 106
  • 168
1
vote
1 answer

Rhino Security and POCO class

it seems if I want to use Rhino Security on an entity , that entity need to have a SecurityKey field of Guid type. I saw an example where the constructor of the entity's class has a statement that assign the SecurityKey public class Document { …
dan_l
  • 1,692
  • 2
  • 23
  • 40
1
vote
0 answers

Janino - Monitor Scripts CPU time and allocated Bytes

I'm trying to build a scripting sandbox using Janino so that I can safely execute user functions by limiting the imports, CPU time and allocated bytes. In Rhino (for javascript code) I have a function available named observeInstructionCount(Context…
Pedro Chaves
  • 123
  • 13
1
2