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

Use ejb client artifact to call ejb basic in oidc-with-identity-propagation #214

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

schlijo
Copy link

@schlijo schlijo commented Jan 3, 2025

Hi

tried to write an issue first but explaining with code changes seems to be easier for me.
If you think this is not an issue just delete the PR.

In your article
https://wildfly-security.github.io/wildfly-elytron/blog/wildfly-oidc-identity-propagation/#secure-an-ejb-invoked-by-an-oidc-app-using-a-different-security-domain

you explain how to do identity propagation. Example works as described. But when I only deploy virtual-security-domain-to-domain.ear do not deploy ejb-basic.ear, the example still works.
What should not be the case in my opinion.
When I examined the example the explanation was obvious. On the virtual-security-domain-to-domain.ear the ejb-basic-ejb was included as well. I think there you should only have the ejb-basic-ejb client not the whole ejb (interface and implementation).
If you check my code changes I now create the ejb-basic-ejb-client.jar as well and include this in virtual-security-domain-to-domain.ear. Then I had to change the jndi names a little bit so they could be found. Lastly I had to adjust the cli to connect the ejb-basic.ear virtual security doamain to the BusinessDomain.
Example then behaves the same but if you miss deploying ejb-basic.ear it's not working anymore (as I would expect).

I am correct or did I misunderstood the example?
Best regards
joachim

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

Successfully merging this pull request may close these issues.

1 participant