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

L10N_ERROR[oktaverify.numberchallenge.instruction] #969

Closed
1 of 2 tasks
jscriptcoder opened this issue Nov 22, 2019 · 9 comments
Closed
1 of 2 tasks

L10N_ERROR[oktaverify.numberchallenge.instruction] #969

jscriptcoder opened this issue Nov 22, 2019 · 9 comments

Comments

@jscriptcoder
Copy link

jscriptcoder commented Nov 22, 2019

I'm submitting a

  • bug report
  • feature request

Background info

I'm having an issue in the NumberChallengeView (see screenshot below)

Now, I debugged the widget and noticed this line:

Looks like returning null is causing this L10N_ERROR. If I instead return an empty string, I get the translation key properly replaced, because apparently the templating engine is complaining that the argument is missing:

With a number, which seems to be expecting, the message looks strange since it outputs the number twice. Not sure what's supposed to appear in here:

Expected behavior

What should have happened?

Definitely not that ugly message. Above all because the label with the translation key oktaverify.numberchallenge.instruction is there.

What went wrong?

Looks like there is a bug, or at least it appears to me, by playing around with the value returned by getTemplateData()

Steps to reproduce

Well, send push must be enabled

Your environment

  • Okta Sign-In Widget Version: 3.4.2
  • Browser: Chrome 78
  • OS: MacOS
  • Language: All languages
@magizh-okta
Copy link
Contributor

@jscriptcoder thanks for filing the issue. I have a few questions and also wanted to give some context on this feature.

Ideally the UI should look like this.

Screen Shot 2019-11-22 at 9 22 23 AM

And this only shows up of client (verify apps and backend supports this flow). That said

  1. Are u trying to build/customize the widget and want to check out this feature?

  2. If so are you using any mock data to try this? Can you give more info as to how you got to see this UI ?

Checkout the test and mockdata for more info https://github.com/okta/okta-signin-widget/pull/884/files#diff-4b2ed50d042dededa6f2af06dc054199R5236

@jscriptcoder
Copy link
Author

jscriptcoder commented Nov 25, 2019

Hi @magizh-okta , thanks for the quick answer,

Answering your questions:

  1. Only customization I'm doing is the re-styling of the widget. I'm hosting the sass files and overriding what's needed, then building the css. I'm not trying to check out this feature. It showed up, apparently, when I upgraded the widget from version 2.13.0 to 3.3.1. But, as you can see this new feature appears along with the "send push" button. Currently, the way I'm solving it is by hiding it:
.number-challenge-view { display: none; }

Maybe I'm missing styles? since I'm sticking to the sass files of the previous version...

Actually when I wrote the previous sentence, I decided to have a quick look at the new sass files and I found this:

https://github.com/okta/okta-signin-widget/blob/master/assets/sass/modules/_mfa-challenge-forms.scss#L72

I can see this is already hidden, and probably it's shown programmatically. No issue then, this is actually my fault for not keeping the sass files up to date.

I guess this issue can be closed. Sorry for the troubles.

Fran

yyc-github pushed a commit to yyc-github/okta-signin-widget that referenced this issue Jan 14, 2020
@restfulhead
Copy link

We're seeing the same issue after upgrading:

okta-label-issue

Can this be merged: #1010?

@bretterer
Copy link
Collaborator

@jscriptcoder & @restfulhead - Thank you for confirming this is still an issue, we will pass this along to our team to take a look at the PR.

internal ref: https://oktainc.atlassian.net/browse/OKTA-278094

@magizh-okta
Copy link
Contributor

@restfulhead the backend api response should be returning the number. Can you post a recording of the flow and the api response.

If you are unable to post the recording can you confirm if you just get this state after primary auth or this show up after showing the old push UI.

FYI this number challenge view works only when backend flag is on and you should not be seeing this unless the flag is on to combine risk scoring feature with okta verify.

@magizh-okta
Copy link
Contributor

Also @restfulhead I guess you might have not consumed the new sass files and might be missing this change. https://github.com/okta/okta-signin-widget/blob/master/assets/sass/modules/_mfa-challenge-forms.scss#L72

Similar to the #969 (comment)

Please confirm if it works so we can close the issue.

@restfulhead
Copy link

Ah, yes, that was it. We weren't pulling the latest styles. I've updated it and no longer see the error. Ticket can be closed, thank you.

@magizh-okta
Copy link
Contributor

Great thanks!

@enchanter5525
Copy link

Ah, yes, that was it. We weren't pulling the latest styles. I've updated it and no longer see the error. Ticket can be closed, thank you.

what are those new styles and where can i find those exactly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants