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

Implementing a custom HTTP authentication mechanism without adding module in the service-loader-http-server-mechanism-factory #181

Open
ilapavuluri opened this issue Aug 31, 2023 · 2 comments

Comments

@ilapavuluri
Copy link

Hi Team,

I am Implementing a custom HTTP authentication mechanism by following the below steps.

https://github.com/wildfly/quickstart/tree/main/http-custom-mechanism

but in the below we added "

"

to initialize custom HttpServerAuthenticationMechanism, which needs to build a separate module and deploy it, which is a overhead for me, is there a way to load my custom HttpServerAuthenticationMechanism code by just deploying my complete war file into the wildfly server without separating custom authentication code and deploying it as a separate module?

Appreciate your help.

I am using Wildfly28 & java11, maven 3.8

Thanks
Ashok.

@Skyllarr
Copy link
Contributor

Hi Ashok,

If I understand you correctly, you want to have the custom authentication code within the application. This is not possible, the design is to have an application code separate from the authentication code. The authentication code does not tend to change often so it is not usually a recurring overhead.

Just a note for next time, please use a forum for this type of question https://groups.google.com/g/wildfly as more people monitor the forum and can answer you more quickly.
Thank you!

@ilapavuluri
Copy link
Author

@Skyllarr thank you so much for the quick response, you mean I need to use the module like below?

"service-loader-http-server-mechanism-factory name="custom-factory" module="org.jboss.as.quickstart.http_custom_mechanism.custom-http-mechanism"

I posted the same in google group as well, going forward will use that only for discussions.

Once again thank you so much for the quick response, I really appreciate it.

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

2 participants