revert: move session token login provider
This PR partially reverts a change introduced in #17451, where CLI specific login providers were moved to an internal package. The problem with this change is that JAAS uses/imports the session token login provider so I've reverted the move.
Currently the only internal login provider is the tryInOrderLoginProvider kept in cmd/internal/loginprovider.
Checklist
- [x] Code style: imports ordered, good names, simple structure, etc
- [x] Comments saying why design decisions were made
- [ ] Go unit tests, with comments saying what you're testing
- [ ] Integration tests, with comments saying what you're testing
- [ ] doc.go added or updated in changed packages
cc @SimonRichardson
The problem with this change is that JAAS uses/imports the session token login provider so I've reverted the move.
I did ask about this in the original PR.
You don't need to revert it, just move it to a better location.
Yeah it's my bad, I forgot that we use it in JAAS, it's only used for tests. Any preferences on where to move it to?
Any preferences on where to move it to?
Move it to api/common/loginprovider or copy and duplicate the code to JAAS.
/merge