You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shiro.apache.org by "jherkel (via GitHub)" <gi...@apache.org> on 2023/10/17 18:57:32 UTC

[I] OSGI Missing Provide-Capability entry for org.apache.shiro.crypto.hash.HashSpi [shiro]

jherkel opened a new issue, #1117:
URL: https://github.com/apache/shiro/issues/1117

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/shiro/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Environment
   
   Apache Karaf 4.4.4 & JDK 17 & Fedora 38
   
   ### Shiro version
   
   2.0.0 alpha 3
   
   ### What was the actual outcome?
   
   During password encryption I can see that shiro isn't able to see argon hash provider.
   
   ### What was the expected outcome?
   
   Shiro is able to use bcrypt & argon hash providers
   
   ### How to reproduce
   
   Import shiro bundles:
       <feature version="${org.apache.shiro.version}">shiro-core</feature>
       <bundle>mvn:org.apache.shiro.crypto/shiro-hashes-bcrypt/${org.apache.shiro.version}</bundle>
       <bundle>mvn:org.apache.shiro.crypto/shiro-hashes-argon2/${org.apache.shiro.version}</bundle>
   
   Deploy any application that uses shiro and is able to run under Karaf & OSGI
   
   ### Debug logs
   
   Caused by: java.lang.UnsupportedOperationException: Cannot create a hash with the given algorithm: argon2id
   	at org.apache.shiro.crypto.hash.DefaultHashService.computeHash(DefaultHashService.java:98) ~[!/:2.0.0-alpha-3]
   	at org.apache.shiro.authc.credential.DefaultPasswordService.passwordsMatch(DefaultPasswordService.java:181) ~[!/:2.0.0-alpha-3]
   	at tech.pantheon.chronos.aaa.impl.security.realm.impl.TokenCredentialsMatcher.doCredentialsMatch(TokenCredentialsMatcher.java:36) ~[?:?]
   	at org.apache.shiro.realm.AuthenticatingRealm.assertCredentialsMatch(AuthenticatingRealm.java:600) ~[!/:2.0.0-alpha-3]
   	at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:581) ~[!/:2.0.0-alpha-3]
   	at Proxy7d5c2798_ad1d_48c5_aa34_93f64a110877.getAuthenticationInfo(Unknown Source) ~[?:?]
   	at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180) ~[!/:2.0.0-alpha-3]
   	at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:273) ~[!/:2.0.0-alpha-3]
   	at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198) ~[!/:2.0.0-alpha-3]
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org


Re: [I] OSGI Missing Provide-Capability entry for org.apache.shiro.crypto.hash.HashSpi [shiro]

Posted by "lprimak (via GitHub)" <gi...@apache.org>.
lprimak commented on issue #1117:
URL: https://github.com/apache/shiro/issues/1117#issuecomment-1766992267

   Sounds like you have a good handle on the problem. Would you submit a PR?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org


Re: [I] OSGI Missing Provide-Capability entry for org.apache.shiro.crypto.hash.HashSpi [shiro]

Posted by "fpapon (via GitHub)" <gi...@apache.org>.
fpapon closed issue #1117: OSGI Missing Provide-Capability entry for org.apache.shiro.crypto.hash.HashSpi
URL: https://github.com/apache/shiro/issues/1117


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org