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

enable TOTP fails #25

Open
Boeckie opened this issue Jun 26, 2017 · 3 comments
Open

enable TOTP fails #25

Boeckie opened this issue Jun 26, 2017 · 3 comments

Comments

@Boeckie
Copy link

Boeckie commented Jun 26, 2017

Dear,

After enabling TOTP in the "User Portal - My Profile" I see the following error:

[2017-06-26 18:03:29,128] ERROR {JAGGERY.gadgets.user_profile.controllers.my-profile.totp-init:jag} - org.mozilla.javascript.WrappedException: Wrapped org.jaggeryjs.scriptengine.exceptions.ScriptException: Exception occurred while trying to invoke service method initTOTP (/portal/gadgets/user_profile/controllers/wsUtil.jag#27) at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)

After re-opening "My Profile", TOTP is not enabled.

Any idea what might be going on?

Similar issue is reported on https://wso2.org/jira/browse/ISCONNECT-60

Thanks,
Bart

@Shakila Shakila closed this as completed Aug 4, 2017
@Shakila Shakila reopened this Aug 4, 2017
@Shakila
Copy link
Contributor

Shakila commented Aug 4, 2017

Hi Bart,

Could you please try with the latest artifacts [1]?
[1] https://store.wso2.com/store/assets/isconnector/details/ceb63613-f7c9-4512-a4f3-f3fe2391de0d

Thanks

@fbuchmeier
Copy link

fbuchmeier commented Jan 23, 2018

Hi Shakila,

this happens to me as well with the latest version 2.0.9.

identity-server-2_1  | [2018-01-23 16:29:29,982]  INFO {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  '[email protected] [-1234]' logged in at [2018-01-23 16:29:29,982+0000]
identity-server-2_1  | [2018-01-23 16:29:43,898] ERROR {JAGGERY.gadgets.user_profile.controllers.my-profile.totp-init:jag} -  org.mozilla.javascript.WrappedException: Wrapped org.jaggeryjs.scriptengine.exceptions.ScriptException: Exception occurred while trying to invoke service method initTOTP (/portal/gadgets/user_profile/controllers/wsUtil.jag#27)
identity-server-2_1  |  at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
identity-server-2_1  |  at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
identity-server-2_1  |  at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
identity-server-2_1  |  at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
identity-server-2_1  |  at org.jaggeryjs.rhino.portal.gadgets.user_profile.controllers.c0._c_call_1(/portal/gadgets/user_profile/controllers/wsUtil.jag:27)
identity-server-2_1  |  at org.jaggeryjs.rhino.portal.gadgets.user_profile.controllers.c0.call(/portal/gadgets/user_profile/controllers/wsUtil.jag)
identity-server-2_1  |  at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
identity-server-2_1  |  at org.jaggeryjs.rhino.portal.gadgets.user_profile.controllers.c0._c_callWSReturnXML_4(/portal/gadgets/user_profile/controllers/wsUtil.jag:87)
identity-server-2_1  |  at org.jaggeryjs.rhino.portal.gadgets.user_profile.controllers.c0.call(/portal/gadgets/user_profile/controllers/wsUtil.jag)
identity-server-2_1  |  at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
identity-server-2_1  |  at org.jaggeryjs.rhino.portal.gadgets.user_profile.controllers.c0._c_callWSReturnJSON_5(/portal/gadgets/user_profile/controllers/wsUtil.jag:102)
identity-server-2_1  |  at org.jaggeryjs.rhino.portal.gadgets.user_profile.controllers.c0.call(/portal/gadgets/user_profile/controllers/wsUtil.jag)
identity-server-2_1  |  at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
identity-server-2_1  |  at org.jaggeryjs.rhino.portal.gadgets.user_profile.controllers.my_profile.c2._c_init_1(/portal/gadgets/user_profile/controllers/my-profile/totp-init.jag:41)

Can I be of any help to resolve this?

I'm using WSO2 IS 5.4.0, the TOTP 2.0.9 and did not install any user_profile changes from the "other_artifacts" since this is not required in 5.4.0 according to the documentation.

Thanks!

Flo.

@fbuchmeier
Copy link

Ok, my problem was related to not enabling the authenticator in the application-authentication.xml correctly.

After enabling it, adding the commons-codec-*.jar into a folder called patch001 instead of directly into repository/components/patches TOTP init now works.

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

No branches or pull requests

3 participants