[
https://issues.jboss.org/browse/ELY-1258?page=com.atlassian.jira.plugin.s...
]
Ondrej Lukas updated ELY-1258:
------------------------------
Description:
{{ElytronAuthenticator.getPasswordAuthentication()}} cannot obtain PasswordFactory for
Elytron related algorithms. It is caused by missing WildFlyElytronProvider (since
{{Security::getProviders}} is used for obtaining providers) for
{{PasswordFactory.getInstance}} in [1].
It results to hidden NoSuchAlgorithmException with message _ELY08028: Invalid algorithm
"clear"_ and stacktrace:
{code}
org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:121)
org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:75)
org.wildfly.security.auth.util.ElytronAuthenticator.getPasswordAuthentication(ElytronAuthenticator.java:92)
java.net.Authenticator.requestPasswordAuthentication(Authenticator.java:317)
...
{code}
It causes that even if element {{net-authenticator}} from Elytron client configuration
file correctly sets ElytronAuthenticator as default Authenticator, it is not able to work
with Elytron related algorithms.
[1]
https://github.com/wildfly-security/wildfly-elytron/blob/4df6f4726b7cf070...
was:
{{ElytronAuthenticator.getPasswordAuthentication()}} cannot obtain PasswordFactory for
Elytron related algorithms. It is caused by missing WildFlyElytronProvider (since
{{Security::getProviders}} is used for obtaining providers) for
{{PasswordFactory.getInstance}} in [1].
It results to hidden NoSuchAlgorithmException with message _ELY08028: Invalid algorithm
"clear"_ and stacktrace:
{code}
org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:121)
org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:75)
org.wildfly.security.auth.util.ElytronAuthenticator.getPasswordAuthentication(ElytronAuthenticator.java:92)
java.net.Authenticator.requestPasswordAuthentication(Authenticator.java:317)
...
{code}
It causes that even if element {{net-authenticator}} from Elytron client configuration
file correctly sets ElytronAuthenticator as default Authenticator, it is not able to work
with Elytron related algorithms which means it breaks feature from RFE7-567 - Client Side
Security (Elytron Client) => we request blocker flag.
[1]
https://github.com/wildfly-security/wildfly-elytron/blob/4df6f4726b7cf070...
ElytronAuthenticator.getPasswordAuthentication() cannot obtain
PasswordFactory for Elytron algorithms
-----------------------------------------------------------------------------------------------------
Key: ELY-1258
URL:
https://issues.jboss.org/browse/ELY-1258
Project: WildFly Elytron
Issue Type: Bug
Affects Versions: 1.1.0.Beta52
Reporter: Ondrej Lukas
Assignee: Darran Lofthouse
Priority: Blocker
{{ElytronAuthenticator.getPasswordAuthentication()}} cannot obtain PasswordFactory for
Elytron related algorithms. It is caused by missing WildFlyElytronProvider (since
{{Security::getProviders}} is used for obtaining providers) for
{{PasswordFactory.getInstance}} in [1].
It results to hidden NoSuchAlgorithmException with message _ELY08028: Invalid algorithm
"clear"_ and stacktrace:
{code}
org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:121)
org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:75)
org.wildfly.security.auth.util.ElytronAuthenticator.getPasswordAuthentication(ElytronAuthenticator.java:92)
java.net.Authenticator.requestPasswordAuthentication(Authenticator.java:317)
...
{code}
It causes that even if element {{net-authenticator}} from Elytron client configuration
file correctly sets ElytronAuthenticator as default Authenticator, it is not able to work
with Elytron related algorithms.
[1]
https://github.com/wildfly-security/wildfly-elytron/blob/4df6f4726b7cf070...
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)