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

  • Home
  • SEARCH
  • 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 8500039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:49:54+00:00 2026-06-11T00:49:54+00:00

This is mainly a wording issue. But albeit a very important one, which can

  • 0

This is mainly a wording issue. But albeit a very important one, which can cause possible misinterpretations in big code bases being maintained by even bigger teams. Let’s say we have a very basic CRUD/RESTful app with an authentication system. In this case, the authenticated user trying to fulfill a data-changing request (POST/PUT) will be then identified by the server (authentication) and then it will be checked whether this identified user has the right to create/update the resource in question (authorization).

Now let’s say I’ll implement the Oauth protocol to at a later stage support some kind of web API solution. In this case, The user from Client App A will have to ask for authorization from the resource provider to do something.

So as of now, we have two valid notions of authorization inside the same app. At the application level it is not that big of a problem, since we can enclosed the two notions in a relevant namespace, but in the DB I have two valid candidates that cannot share the name authorizations.

As I’m not a big fan of namespacing table names, I’d like suggestions for possible renaming of one of them (or maybe some other wild solution you might have implemented).

Cheerio

  • 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-06-11T00:49:55+00:00Added an answer on June 11, 2026 at 12:49 am

    How about oauthgrants or just prefix authorizations with more descriptive names?:
    user_authorizations
    and app_user_authorizations. This might violate your rule about namespacing, but would be much more descriptive.

    user_authorizations or authorizations would just have what the user is allows to do within the system.

    app_user_authorizations or oauthgrants would have which privileges the user has granted to third party applications via OAuth. It would store: user ID, OAuth 2.0 client ID, scope granted, refresh token (if exists), expiration (if exists). It may also have the access tokens depending on how you implement them (or they may be in another table or not stored because they’re cryptographically verifiable)

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

Sidebar

Related Questions

I have one website mainly composed on javascript. I hosted it on IIS. This
When you say thin data access layer, does this mainly mean you are talking
Mainly this is a question about how to get a similar behaviour as java
I am having trouble with this setup mainly because I am not sure what
This question is mainly about protecting the content inside my iOS app. I intend
This question is mainly to verify my current idea. I have a series of
This question is mainly aimed at shared libraries (.so files) compiled for Linux platforms.
I'm mainly asking this to professionals who know the playing field of professional developing.
I have a column stored as text, this column is mainly full of numeric
This question and my answer below are mainly in response to an area of

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.