Skip to content

fix: correct FoD session login credential grouping and tenant option usage#944

Open
SangameshV wants to merge 1 commit intodev/v3.xfrom
fix/v3.x/fod-session-login-option-tenant
Open

fix: correct FoD session login credential grouping and tenant option usage#944
SangameshV wants to merge 1 commit intodev/v3.xfrom
fix/v3.x/fod-session-login-option-tenant

Conversation

@SangameshV
Copy link
Contributor

The --tenant option was not displayed as mandatory for the fcli fod session login command when using the username/password option group. It is now required when username and password are provided, but not when using the client-id and client-token options.

@SangameshV SangameshV self-assigned this Mar 6, 2026
@SangameshV SangameshV requested a review from rsenden March 6, 2026 12:36
Copy link
Contributor

@rsenden rsenden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not backward-compatible, as pipelines/automations may already be combining --tenant with --client-id & --client-secret; with this change, such pipelines/automations will start failing as this combination is no longer allowed.

We either need to revert to the old behavior, or somehow update the current implementation to also accept --tenant as an optional/ignored option in combination with --client-id and --client-secret, for example utilizing Picocli functionality to pre-process parameters/options and ignoring/removing the --tenant option if --client-id or --client-secret has also been specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants