Questions tagged [rhino-security]

Rhino Security is a row level security framework for NHibernate.

26 questions
1
vote
1 answer

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 my case, using the latest code, I am seeing that…
rboarman
  • 8,248
  • 8
  • 57
  • 87
1
vote
0 answers

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 in Users UserGroup entitlements: Entity:…
raf
  • 31
  • 4
1
vote
1 answer

Rhino Security - Configure multiple users

I am using Rhino Security and everything works fine when I configure the security settings as follows: Security.Configure(cfg, SecurityTableStructure.Prefix); However, this depends on having a single User type that implements the IUser…
JP.
  • 5,536
  • 7
  • 58
  • 100
1
vote
1 answer

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 checks whether userXYZ can perform activity 'Change'…
cs0815
  • 16,751
  • 45
  • 136
  • 299
0
votes
1 answer

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 id field which is long. now how can i implement…
yrahman
  • 960
  • 5
  • 15
  • 33
0
votes
1 answer

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 /Product/Read on Product . Will the IsAllow of…
dan_l
  • 1,692
  • 2
  • 23
  • 40
0
votes
1 answer

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 application). I build my session factory this…
LeftyX
  • 35,328
  • 21
  • 132
  • 193
0
votes
1 answer

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 best practice Thank you
Bassam Bsata
  • 1,075
  • 2
  • 10
  • 13
0
votes
3 answers

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 Application_EndRequest method contains ISession session =…
RichG
  • 11
  • 6
0
votes
1 answer

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 advance & greetings, chris
0
votes
1 answer

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 the appropriate call is made to setup the…
Dan
  • 802
  • 1
  • 9
  • 19
1
2