-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
ElytronPasswordIdentityProvider does not forward attributes from SecurityIdentity #44804
Comments
/cc @sberyozkin (security) |
@MelkorCC as you seem to have analyzed the code, would you be willing to contribute the necessary fix? Thanks |
Sure, however i have two questions:
|
So, i looked into this a bit yesterday after work. The fix is pretty trivial, as already mentioned everything is already there and i just needed to forward it to the builder. Great. I also figured out that the IdentityProviders are covered by the integration tests rather than unittests, but this is where my problem started. I can't run the intergration tests. Every one that i tried (even the GreetingResourceTest mentioned in CONTRIBUTING.md) gave me the same error:
Given that i was unable to find any information about this on github i feel like i missed some very obvious step when setting up the Quarkus repo locally. But i am unable to spot the step i might be missing. |
@MelkorCC Thanks for giving it a try, can you open a draft PR request, updating the main source only to copy those attributes, and I can help next week to add a test |
@sberyozkin i reverted my attempts with adding the tests for an ldap setup and created the draft pr |
Thanks @MelkorCC, I've commented in the PR, can give me a hint what to update, for example, in the DB user name and password entry, for the extra attributes be available, I'll then update one of the integration tests to verify the attribute(s) are copied |
@sberyozkin thanks again for your time and work on this issue |
Describe the bug
In Wildfly Elytron it is possible to request additional attributes using attribute mappings. Quarkus does also enable this via the configs (example for ldap).
Quarkus SecurityIdentity interface and implementation has getAttribute and getAttributes methods available and likewise the builder used to construct it has setAttribute and setAttributes methods, however ElytronPasswordIdentityProvider does not forward the attributes from the retrieved Wildfly SecrutityIdentityto it.
Expected behavior
The attributes should be set on the builder and thus ultimately be available on the injected SecurityIdentity.
Actual behavior
The attributes are not available on injected SecurityIdentity.
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: