JanssenProject / jans

An open source enterprise digital identity platform for CIAM or workforce... Janssen is a distribution of standards-based, developer friendly, components that are engineered to work together in any cloud. #OAuth #OpenID #FIDO
https://docs.jans.io
Apache License 2.0
439 stars 73 forks source link

fix(jans-casa): fido script not working #8441

Closed manojs1978 closed 3 months ago

manojs1978 commented 3 months ago

Describe the bug fido script not working

To Reproduce Steps to reproduce the behavior:

  1. install jan 1.1.2.nightly
  2. enable fido script
  3. login to jans-casa
  4. register fido device
  5. not able to register

Expected behavior should able to register fido device

Screenshots If applicable, add screenshots to help explain your problem. image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

manojs1978 commented 3 months ago

error in fido log

03-05 05:50:06.712 INFO  [Thread-108] [io.jans.fido2.service.app.ConfigurationFactory] (ConfigurationFactory.java:276) - Loading configuration from 'sql' DB...
03-05 05:50:06.717 ERROR [Thread-108] [io.jans.fido2.service.app.ConfigurationFactory] (ConfigurationFactory.java:297) - WELD-001334: Unsatisfied dependencies for type AbstractCryptoProvider with qualifiers @Default
org.jboss.weld.exceptions.UnsatisfiedResolutionException: WELD-001334: Unsatisfied dependencies for type AbstractCryptoProvider with qualifiers @Default
        at org.jboss.weld.bean.builtin.InstanceImpl.checkBeanResolved(InstanceImpl.java:241) ~[weld-core-impl-4.0.3.Final.jar:4.0.3.Final]
        at org.jboss.weld.bean.builtin.InstanceImpl.get(InstanceImpl.java:113) ~[weld-core-impl-4.0.3.Final.jar:4.0.3.Final]
        at io.jans.fido2.service.app.ConfigurationFactory.destroyCryptoProviderInstance(ConfigurationFactory.java:309) ~[classes/:?]
        at io.jans.fido2.service.app.ConfigurationFactory$Proxy$_$$_WeldSubclass.destroyCryptoProviderInstance(Unknown Source) ~[classes/:?]
        at io.jans.fido2.service.app.ConfigurationFactory.createFromDb(ConfigurationFactory.java:288) [classes/:?]
        at io.jans.fido2.service.app.ConfigurationFactory.reloadConfFromLdap(ConfigurationFactory.java:272) [classes/:?]
        at io.jans.fido2.service.app.ConfigurationFactory$Proxy$_$$_WeldSubclass.reloadConfFromLdap(Unknown Source) [classes/:?]
        at io.jans.fido2.service.app.ConfigurationFactory.reloadConfiguration(ConfigurationFactory.java:209) [classes/:?]
        at io.jans.fido2.service.app.ConfigurationFactory.reloadConfigurationTimerEvent(ConfigurationFactory.java:174) [classes/:?]
        at io.jans.fido2.service.app.ConfigurationFactory$Proxy$_$$_WeldSubclass.reloadConfigurationTimerEvent$$super(Unknown Source) [classes/:?]
        at jdk.internal.reflect.GeneratedMethodAccessor46.invoke(Unknown Source) ~[?:?]
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
        at org.jboss.weld.interceptor.proxy.TerminalAroundInvokeInvocationContext.proceedInternal(TerminalAroundInvokeInvocationContext.java:51) [weld-core-impl-4.0.3.Final.jar:4.0.3.Final]
        at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:78) [weld-core-impl-4.0.3.Final.jar:4.0.3.Final]
        at io.jans.service.cdi.async.AsynchronousInterceptor$1.get(AsynchronousInterceptor.java:42) [jans-core-service-1.1.2-SNAPSHOT.jar:?]
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) [?:?]
        at java.base/java.lang.Thread.run(Thread.java:840) [?:?]
03-05 05:50:06.734 ERROR [Thread-108] [io.jans.fido2.service.app.ConfigurationFactory] (ConfigurationFactory.java:176) - Exception happened while reloading application configuration
io.jans.exception.ConfigurationException: Unable to find configuration in DB...
        at io.jans.fido2.service.app.ConfigurationFactory.createFromDb(ConfigurationFactory.java:300) ~[classes/:?]
        at io.jans.fido2.service.app.ConfigurationFactory.reloadConfFromLdap(ConfigurationFactory.java:272) ~[classes/:?]
        at io.jans.fido2.service.app.ConfigurationFactory$Proxy$_$$_WeldSubclass.reloadConfFromLdap(Unknown Source) ~[classes/:?]
        at io.jans.fido2.service.app.ConfigurationFactory.reloadConfiguration(ConfigurationFactory.java:209) ~[classes/:?]
        at io.jans.fido2.service.app.ConfigurationFactory.reloadConfigurationTimerEvent(ConfigurationFactory.java:174) [classes/:?]
jgomer2001 commented 3 months ago

unable to reproduce