Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mvc-dev] mvc interaction with SecurityContext

Apologies ahead of time if this is the wrong place to ask questions.

I am in the process of trying out jakarta mvc.
I have the @Controller working just fine.
I have implemented a @CustomFormAuthenticationMechanismDefinition and that is working just fine.

The issue I am having is in trying to marry the two.

I cannot figure out how to get a @Controller to work with something @RolesAllowed from a servlet.

That is, I am trying to figure out how to get a @Controller to only be invoked if a user is in a certain role(s).

Is there a set of examples or an article anyone can point me to? I am not finding anything when I search.

Thanks for your time.

Back to the top