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 6750841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:51:22+00:00 2026-05-26T12:51:22+00:00

Im doing authentication/authorization in a generic way but i have a problem, some behaviors

  • 0

Im doing authentication/authorization in a generic way but i have a problem, some behaviors of system are dependant of user role and one user can have more than one role.

Its not only about user can/cant do some action but action itself change for each user role, there is a lot of metadata related with each role and cant realize how keep cohesion.

If i merge security with business the coupling will be hight and all become a messy and if keep separate creating tables for each i will get some entities double and i get a messy too.

One small part of metadata is:

One employ if junior can build only basic part for one job for only one customer or get basic job abandoned started by another junior in same customer

If master can build new basic part and fix/manage building made by all juniors from one customer.

If manager can do everything for all customers and control master job.

For each job one junior need choose one master related and one master need choose one manager, when one junior get abandoned job he become owner but when master fix one job the creator junior keep ownership.

  • 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-26T12:51:22+00:00Added an answer on May 26, 2026 at 12:51 pm

    Create one table to each entity until reach a tree, each time one new role appear create a new table, then use this structure to control system. Keep users on user tables and employees on employees table, each user has one password and login and after must login with employees password and login too. Its solve your problem.

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

Sidebar

Related Questions

I'm doing some funky authentication work (and yes, I know, open-id is awesome, but
Doing some jquery animation. I have certain divs set up with an attribute of
I've never seen this done but I had an idea of doing authorization in
<authentication mode=Windows/> <authorization> <allow users=USERS/> <allow roles=ROLES/> <deny users=*/> </authorization> Is there a way
I have been doing some research lately about best approaches to authenticating web services
I'm playing around with authentication and authorization to prepare for some task. I've created
I have implemented Devise for Authentication and Authorization in ROR application everything seems fine
I'm interested in what strategies can be used for handling user authentication and authorization
I have a Rails 3 engine gem that is for basic user authentication and
I am doing simple forms authentication for a small ASP.NET (3.5, C#) application and

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.