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

Auto fill vasco serial from digipass blob in admin-ui #910

Merged
merged 1 commit into from
Jan 24, 2018
Merged

Auto fill vasco serial from digipass blob in admin-ui #910

merged 1 commit into from
Jan 24, 2018

Conversation

renini
Copy link
Contributor

@renini renini commented Jan 23, 2018

@cornelinux i made this for #909
Do you think this is an acceptable solution?

Merging #910 into master will increase coverage by 0.01%.
The diff coverage is n/a.
Impacted file tree graph

@@            Coverage Diff            @@
##           master    #910      +/-   ##
=========================================
+ Coverage   95.38%   95.4%   +0.01%
=========================================
Files         129     129
Lines       15933   15933
=========================================
+ Hits        15198   15201       +3
+ Misses        735     732       -3
Impacted Files Coverage Δ
privacyidea/lib/tokens/u2f.py 95.79% <0%> (+2.52%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a62fd9b...0771a96. Read the comment docs.

  • Thanks a lot for the pull request.
    I thought i would push this into the server, so that the basic configuration can decide, if the new token should have the vasco serial number or a generated serial number.
    But presenting the vasco serial number to the admin is nice anyways!
    As mentioned, I am a bit hesitant to have the client/webui decide for the serial number.
  • I was thinking about it this way, if another client other then the webui doesn't supply the serial number it would still get generated as VASC$RANDOM$.
    But a server generation of serialnumbers for vasco might be a better approach. I will leave that up to you.
    Could there in theory be a serialno clashing with other type of tokens then vasco?
  • privacyIDEA generates serial numbers that do not clash - unless you may have over 100.000 tokens and create tokens in a very fast manner (I think there is an issue somewhere - but imho even this should not happen).
    The serial numbers that are generated by privacyIDEA are prefixed with a token type.
    However, if you import tokens and the serial number of the imported tokens is simply 2120934980192 (a number), then one imported token would overwrite another imported token. But this also usually does not happen, since in setups mostly one token vendor is used and also the tokenvendors I know, use different number ranges.
    So short: No.

  

@codecov-io
Copy link

Codecov Report

Merging #910 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #910      +/-   ##
=========================================
+ Coverage   95.38%   95.4%   +0.01%     
=========================================
  Files         129     129              
  Lines       15933   15933              
=========================================
+ Hits        15198   15201       +3     
+ Misses        735     732       -3
Impacted Files Coverage Δ
privacyidea/lib/tokens/u2f.py 95.79% <0%> (+2.52%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a62fd9b...0771a96. Read the comment docs.

@cornelinux
Copy link
Member

Thanks a lot for the pull request.

I thought i would push this into the server, so that the basic configuration can decide, if the new token should have the vasco serial number or a generated serial number.

But presenting the vasco serial number to the admin is nice anyways!

As mentioned, I am a bit hesitant to have the client/webui decide for the serial number.

@renini
Copy link
Contributor Author

renini commented Jan 24, 2018

I was thinking about it this way, if another client other then the webui doesn't supply the serial number it would still get generated as VASC$RANDOM$.

But a server generation of serialnumbers for vasco might be a better approach. I will leave that up to you.

Could there in theory be a serialno clashing with other type of tokens then vasco?

@cornelinux
Copy link
Member

privacyIDEA generates serial numbers that do not clash - unless you may have over 100.000 tokens and create tokens in a very fast manner (I think there is an issue somewhere - but imho even this should not happen).

The serial numbers that are generated by privacyIDEA are prefixed with a token type.

However, if you import tokens and the serial number of the imported tokens is simply 2120934980192 (a number), then one imported token would overwrite another imported token. But this also usually does not happen, since in setups mostly one token vendor is used and also the tokenvendors I know, use different number ranges.

So short: No.

@cornelinux cornelinux merged commit 0771a96 into privacyidea:master Jan 24, 2018
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

Successfully merging this pull request may close these issues.

3 participants