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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:03:47+00:00 2026-06-05T19:03:47+00:00

I am working on a project to implement token based authentication in a system.

  • 0

I am working on a project to implement token based authentication in a system. I was thinking about using either SAML or OAuth.

I wanted to know if it is possible to represent the actual policies (which are ACL based for the system) inside the token. With the current design, I was thinking about giving the user a token which would contain all the resources and the permitted roles. The service, upon the request of the user, which check this token to see if the user has the required permission on the resources involved.

Is it possible to be represented using either SAML/OAuth tokens? If it is possible in both, which one should be used here. From most of the examples I saw, SAML is used for SSO solutions and OAuth is used for defining actual authorization policies. But it was not clear from the demos/examples if it is possible to give restrictive access on a particular resource using OAuth.

e.g. when a Facebook app wants to access your photos using OAuth, is it possible to restrict the access to only a particular album? Or is it more like all or nothing approach. Are there any resources which I can read to get more information?

  • 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-05T19:03:48+00:00Added an answer on June 5, 2026 at 7:03 pm

    Most architectures (for both SAML and OAuth) use tokens that contain attributes upon which the relying party (or receiving API) then interprets and applies its own policy (ACL) upon.

    In the case of OAuth, scopes are used to designate what permissions the Access Token represents. Scopes can be as fine grained as you like (to cover cases like single photo album restriction). These may have been authorized by the user in certain OAuth flows. The token itself is not defined in the OAuth 2.0 spec – but you could make the format self-contained (perhaps digitally signed by the token issuer) so the scopes are held within it. Some models use opaque tokens that need to be validated via callback (maybe back channel) to the issuer, then the scopes are returned to the relying party.

    In SAML, an Attribute Statement can be present within a Assertion for a similar purpose. The relying party interprets individual attributes to determine what the user is authorized to do. The Attribute Statement may come through as part of SSO or it might be obtained via AttributeQuery at some later point (after authentication).

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

Sidebar

Related Questions

I'm working on a project that's trying to implement some editing features using a
I'm working on a homework project where we implement sessions (can't use HTTPSession) using
I am working on a project where I've to implement Distributed File System, so
I'm working on a project and I'm told to implement a highscore system. I
I am working a school project to implement a Huffman code on text. The
I am working on a project to implement digital signatures of outgoing messages and
I'm working on a project that will require me to implement a calendar. I'm
I am working on one project where there is a functionality need to implement
I'm currently working on a project where I need to implement several classes to
I am working on a project. I am trying to implement the core as

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.