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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:41:41+00:00 2026-05-25T21:41:41+00:00

I am new to Spring Security. Can Spring Security validate the relationship between users?

  • 0

I am new to Spring Security. Can Spring Security validate the relationship between users?

for example:

I have two users type. one is teacher, another one is student.
I wanna validate whether this student have relationship with the special teacher.
Then the student can do some operation with this special teacher.
Can spring security achieve this goal?

Please provide me some reference, keyword, or link then i can do more study

Thx

  • 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-25T21:41:42+00:00Added an answer on May 25, 2026 at 9:41 pm

    Security issues can be categorised as authentication or authorization issues. Your issue is an authorization issue. But it is not a static authorization problem, since it is not caused due to the configuration of rights and roles of the user, but it is a dynamic one since it has to do with the student being related to a teacher in order to be authorised to execute some specific action. What you need is to inject the spring security which business checks that provide a positive flag each time this relation is satisfied.

    If I undestood you problem well perhaps you might need to read and understand about AccessDecisionManager class from Spring Security.

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

Sidebar

Related Questions

I am relatively new to the Spring Framework and Spring security. I have used
I am using the new Spring Security 3.1 and have a few questions to
I'm new to Spring Security. How do I add an event listener which will
I'm brand spanking new at Spring and have gotten a majority of the knowledge
I have a Spring Security (form based authentication) web app running CXF JAX-RS webservices
I am new in ss3,and I have read its reference,also I read the spring
I am relatively new to Spring and Spring security. I was attempting to write
Right now in Spring security I have this code: <session-management> <concurrency-control max-sessions=1 error-if-maximum-exceeded=true />
I'm a reasonably new user of Spring Security. I previously configured Spring Security to
Does spring security have a way to prevent the last point below? I'm using

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.