In the IDE plugin, we want to show the user the list of identities.
rad auth returns the list of identities, but in interactive mode only - making it unsuitable for wrapping in other scripts. Our only option currently (to the best of our knowledge) is to read the platform-dependent filesystem directory where keys are stored. This is ugly, error-prone and introduces another dependency on our side that we really don't want to have: the way keys are stored in the filesystem. That feels like an internal implementation detail of the rad cli that we really shouldn't care about.
Could an option be added to rad auth (e.g. --list | -l ) such that it only returns the list of identities / names / profile IDs ?
Yeah, seems like a good idea. I'm still trying to decide how we will handle multiple identities per device in Heartwood though, so don't want to put too much work into this yet.
In the IDE plugin, we want to show the user the list of identities.
rad auth
returns the list of identities, but in interactive mode only - making it unsuitable for wrapping in other scripts. Our only option currently (to the best of our knowledge) is to read the platform-dependent filesystem directory where keys are stored. This is ugly, error-prone and introduces another dependency on our side that we really don't want to have: the way keys are stored in the filesystem. That feels like an internal implementation detail of therad
cli that we really shouldn't care about.Could an option be added to
rad auth
(e.g.--list | -l
) such that it only returns the list of identities / names / profile IDs ?