### What is the version of your ORAS CLI v0.16.0 ### What would you like to be added? Make `--identity-token` an alias of `--password` ### Why is this needed for ORAS? `oras` supports using identity token as the credential without a username. The UX of `oras login $REGISTRY --password $TOKEN` does not seem good enough. It will be better if it is ```sh oras login $REGISTRY --identity-token $TOKEN ``` ### Are you willing to submit PRs to contribute to this feature? - [ ] Yes, I am willing to implement it.
Activity
qweeah commentedon Jan 11, 2023
What if a user mistakenly use
oras login $REGISTRY --username $USERNAME --identity-token $TOKENshizhMSFT commentedon Jan 20, 2023
I think we should return error for this case.
rafiya2003 commentedon Jun 6, 2023
I would like to work on this
qweeah commentedon Jun 7, 2023
@rafiya2003 If you have any questions, feel free to join oras slack and ping me
qweeah commentedon Jun 7, 2023
Not all registry support token refreshing from identity token to registry token. E.g. ghcr returns 405 for token refreshing.
@shizhMSFT We should also add a flag
--registry-tokenallow user to use registry token in oras commands.shizhMSFT commentedon Jun 7, 2023
That can be another issue and I noticed that you have created one #968
sbdtu5498 commentedon Jun 27, 2023
I have completed the implementation. Will try to push it soon,
qweeah commentedon Jul 12, 2023
@sbdtu5498 Any update on this?
sbdtu5498 commentedon Jul 14, 2023
Oh sorry for the delays. I was busy with some other stuff and left the task hanging. Will push it before Monday.
qweeah commentedon Aug 1, 2023
@shizhMSFT Do we also need
--registry-token-stdin?shizhMSFT commentedon Aug 1, 2023
SGTM but is that
--identity-token-stdin?qweeah commentedon Aug 3, 2023
@sbdtu5498 So we need to add another flag to enable read identity token from stdin like:
sbdtu5498 commentedon Aug 6, 2023
Sure, will do it ASAP. Sorry for the delayed response.