Questions tagged [rhino-security]

Rhino Security is a row level security framework for NHibernate.

rhino-security
Filter by
Sorted by
Tagged with
1 vote
0 answers
86 views

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 ...
1 vote
1 answer
231 views

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 ...
4 votes
3 answers
4k views

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 ...
1 vote
0 answers
80 views

How to map business rules to Rhino Security EntityGroups?

I am using Rhino Security to secure NHibernate entities on a huge database. Part of the requirement is to implement business rules that'll map to Rhino EntityGroups to filter out data based on logged ...
6 votes
1 answer
2k views

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 ...
4 votes
3 answers
2k views

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 ...
1 vote
1 answer
547 views

activity/task based authorisation

Rhino security seems to offer a nice way to perform task/activity based authorization. This is some example code: bool isAllowed = authorizationService.IsAllowed(userXYZ, "/Messages/Change"); It ...
4 votes
2 answers
496 views

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 ...
1 vote
2 answers
651 views

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 ...
4 votes
2 answers
3k views

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 ...
0 votes
1 answer
160 views

implementing rhino security where user Id data type is not long

i want to implement rhino security on my application. i have user entity class whose Id field is GUID. according to Rhino security instructions i have to implement IUser interface which contains an ...
0 votes
1 answer
120 views

How to test if a fluent service method is called

I have a security rule that a newly registered user has full permissions over their own user entity. I'm using Rhino.Security and the code works fine, but I want to create a unit test to make sure ...
1 vote
1 answer
182 views

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 ...
3 votes
1 answer
2k views

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: ...
0 votes
1 answer
218 views

Rhino Security on components and its container

Suppose I have an entity Product ,and each product has a Category (which as category_id , cat_name ). Suppose I build permission of operation /Category/Read on Category , and permission of operation ...
2 votes
1 answer
171 views

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 ?
0 votes
1 answer
550 views

Instruct StructureMap to create a NEW Session (only when disposed)

I am using StructureMap with Nhibernate and I would like to instruct the tool to build a new session everytime is needed, and only if is disposed. I'll try to explain with some code (this is a console ...
0 votes
1 answer
276 views

Rhino Security with Oracle and Nhibernate 3.0

How to use Rhino Security from Ayende with Nhibernated Application with Oracle database? The NHibernate version is 3.0 and I read that Rhino Security requires version 2.0. Please provide me with the ...
2 votes
1 answer
613 views

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 ...
1 vote
1 answer
148 views

Problem removing a user using Rhino Security

Can someone please confirm for me that if I add a user to several groups, and then call RemoveUser, that the user will in fact be removed from the security_UsersToUsersGroups table? I ask because, in ...
0 votes
3 answers
722 views

S#arp Architecture - Rhino Security (unmapped class: Rhino.Security.IUser)

I'm using S#arp Architecture 1.6 and have implemented the Rhino Security integration as per Rhino Security - S#arp Architecture I'm using the latest build from Rhino.Commons My ...
2 votes
2 answers
612 views

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 ...
0 votes
1 answer
355 views

Castle 2.5/NHibernate/Magnum/NServiceBus

Is there anyone out there having a working Castle 2.5 based stack including NHibernate (2.1.2.x), FluentNHibernate, Magnum, NServiceBus, rRhino.Security up and running built for .Net 4? thanks in ...
1 vote
1 answer
289 views

Rhino Security - Configure multiple users

I am using Rhino Security and everything works fine when I configure the security settings as follows: Security.Configure<User>(cfg, SecurityTableStructure.Prefix); However, this depends on ...
2 votes
1 answer
454 views

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 ...
2 votes
1 answer
705 views

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 ...