stoken-dev / stoken

RSA SecurID-compatible software token for Linux/UNIX systems
http://stoken.sf.net
GNU Lesser General Public License v2.1
411 stars 78 forks source link

Support for multiple tokens? #34

Closed jamiesonio closed 5 years ago

jamiesonio commented 7 years ago

Is there currently support for or any plans to add support for multiple tokens? I have a workaround of swapping which .stokenrc file in my home directory based on which token I want active but it'd be nice if there was native support for multiple tokens.

Thank you for this very useful tool

TryTryAgain commented 5 years ago

I was looking for a solution. I think this issue can be closed, it appears it is supported already...

Example:

Import your first token, move it to .token1 mv .stokenrc .token1

Import your next token, move it to .token2 mv .stokenrc .token2

Then you can access with the built in --rcfile option to access them separately: stoken tokencode --rcfile=.token1 stoken tokencode --rcfile=.token2

jamiesonio commented 5 years ago

Thank you. I have been using a wrapper script to swap tokens from .stoken/token1 / .stoken/token2 to .stokenrc but this is a better solution.