Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4004942
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:20:04+00:00 2026-05-20T08:20:04+00:00

The question I have is that of securing documents across services using RavenDb and

  • 0

The question I have is that of securing documents across services using RavenDb and the Authorization bundle:

I have an ‘Account’ service which is responsible for managing all things ‘user’.

I have a ‘Messaging’ service which is responsible for all things ‘messaging’ i.e. wall posts, conversations etc.

To trace who did what in this service, when a new message is posted I create the message and two UserProxy objects (cut down User objects which only have UserId and UserName properties – these are stored as child objects on the WallPost doc so they aren’t documents in their own right)

When a user posts something to another users wall i only want to allow:

  • delete/edit to the original poster, the recipient and admins
  • view to original poster, recipient, admins and all friends of the recipient

I also have a media service which is responsible for images/video, a MusicEvent service for all things music event – they all need to have a similar setup.

My question is this:

*should the account service store the master User with Roles and Permissions – when it is asked for a user it can send back a dto with the roles and permissions (could get chunky)

*should the Messaging Service maintain it’s own copy of a User – with it’s own set of roles and permissions?

first is simpler moving forward as it’s centralised – but looks a bit dodgy to me
second is probably better but the issue comes when the AccountService changes the username – i can send an event to the esb and have all the relevant services pick it up and take care of the update – but that sounds complicated.

FTR – i’m swaying to option 2 – the non-centralised method.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T08:20:04+00:00Added an answer on May 20, 2026 at 8:20 am

    Ayende answered this for me quite nicely on his blog:

    http://ayende.com/Blog/archive/2011/02/17/distributed-authorization-with-ravendb.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question that keeps bothering me. Currently, I have started using Kohana
Dynamic animation using storyboards There is a question i have found that relates directly
After I have read the answer for this question I have found that using
(Sorry if it's a trivial question.) I have documents that looks like this (Python
A question I have is that, when a certificate is signed by a ca
From a previous question I have seen that the CLR has workstation and server
Following on from this question I now have code that can attach to a
I'm a newbie at Scheme, so forgive the question: I have a function that
I have a question that is similar to this question , but mine concerns
I have a question that may be quite naive, but I feel the need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.