Auto fill vasco serial from digipass blob in admin-ui #910
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@cornelinux i made this for #909
Do you think this is an acceptable solution?
95.79% <0%> (+2.52%)
Continue to review full report at Codecov.
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.
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?
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.