Add --credential option and deprecate --force-login-as-user - #688
Merged
Merged
Conversation
Wires up frodo-lib's new getTokens({credentialOverride}) parameter:
- --credential <type>/FRODO_CREDENTIAL (user|svcacct|amster|browser):
forces one invocation to use a specific configured credential,
overriding ambient browser-session cache reuse and any saved
--default-credential preference. 'browser' reuses a cached
browser-login session and fails clearly if none is valid — it never
starts a fresh interactive login (that's --browser/--device).
- --force-login-as-user is now marked [Deprecated] in help text
(equivalent to --credential user), kept working for backward
compatibility, planned for removal at the next major release.
- --default-credential, previously only on `conn save`, is now also
available on `login --save` (closes a real gap: there was no way to
persist this preference from an interactive login+save in one step).
Also gets the frodo-lib fixes for `frodo login --browser <alias>`
requiring a redundant --type despite a saved profile, and `frodo info
<host>` 403ing with "No session for request" immediately after a
successful browser login.
Verified live against a real cloud tenant. Full suite: 609/611 test
suites, 1786 tests, no regressions.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LELpRLKxwcMLpQ1uMxWxc3
…d package-lock.json Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LELpRLKxwcMLpQ1uMxWxc3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.