juju icon indicating copy to clipboard operation
juju copied to clipboard

revert: move session token login provider

Open kian99 opened this issue 1 year ago • 3 comments

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

kian99 avatar Jul 01 '24 06:07 kian99

cc @SimonRichardson

kian99 avatar Jul 01 '24 06:07 kian99

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.

SimonRichardson avatar Jul 01 '24 07:07 SimonRichardson

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?

kian99 avatar Jul 01 '24 07:07 kian99

Any preferences on where to move it to?

Move it to api/common/loginprovider or copy and duplicate the code to JAAS.

SimonRichardson avatar Jul 04 '24 13:07 SimonRichardson

/merge

SimonRichardson avatar Jul 05 '24 09:07 SimonRichardson