Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Part 2- How role gets assigned to user in JAAS?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Ranchers,

I am currently working on the Part 2 assignment. Have been pondering about using JAAS in the solution.

In case of a web application, users would do self-registration (and thereby create their own userids).From what I understand, I can write my call back handlers in JAAS, and can accordingly even authenticate the users, against the userid information persisted in the application database.

However, what I am not able to figure out is , how does this user, get a particular role assigned. In case of both web/ EJB security, i can define the roles, that would access protected resources/methods.. The contents on the net, give an idea that you define the roles, for specific user ids.. in the j2ee server. In this case, the userids are self-created (by users during registration with the sithe) and cannot be fixed by the administrator in the server.

Does that mean, I cant go for JAAS authentication, if i have self registration or am i missing something totally?

Please help.

Thanks.
Lavan.
 
Lavan Adgaonkar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any help?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try to read something about "LoginModule".

I hope it will help you.

Martin.
 
Lavan Adgaonkar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Read some documentation on those lines and figured out the Subject/Principals.. exactly what I was looking for.

Thanks Martin.
 
reply
    Bookmark Topic Watch Topic
  • New Topic