Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jwt does not run on wildfly #31

Open
sekaijin opened this issue Oct 24, 2018 · 2 comments
Open

jwt does not run on wildfly #31

sekaijin opened this issue Oct 24, 2018 · 2 comments
Assignees

Comments

@sekaijin
Copy link

hi!
I'm trying to run jwt on wildfly 14
adding web.xml and beans.xml in the generated war the application starts but
authentication does not work.

no class is initialized when the application starts
when calling /api/login with the parameters
securityContext.getCallerPrincipal () is still null, so we get a 401 and that does not go any further.

it seems that there is no explanation of how it works to make it possible to understand what is meant to be done.

A+JYT

@arjantijms
Copy link
Contributor

Thanks for the report. It should of course work on WildFly 14. Whenever I've got some time I'll take a look.

@arjantijms arjantijms self-assigned this Oct 24, 2018
@lambrosx77
Copy link

lambrosx77 commented Mar 4, 2019

Hi,

To begin, thank you for the samples and all the work.

I've got many errors deploying on Payara, to make it run :

  • I added @RequestScoped on Controllers classes otherwise SecurityContext injection seems to fail
  • I added @RequestScoped on TokenProvider class otherwise injection fail
    JWTAuthenticationMechanism
  • Uncomment @RollesAllowed in SampleController to avoid null on securityContext.getCallerPrincipal().getName()
  • I execute "mvn clean package -DskipTests" before running

I don't know if my modifications are the good way but if it can help waiting official solution...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants