You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update tokenType & tokenValue command args to keep the order of precedence consistent between service profile and base profile in Zowe Explorer.
Use Cases:
In Zowe Explorer, service profiles generally take precedence over base profiles, However:
If a user has an alternate profile type which has the capability to authenticate with it's server via JWT token and the user has a base profile that may just store host, username, password but not a token. The token will be overwritten to an undefined value.
This will also occur if the base profile has a token for other profile types that may be behind the API ML but this particular profile type (the alt profile) isn't behind the API ML therefore it will pass the incorrect token.
The lines that are causing this are here in the new `Profiles.ts/ getCombinedProfile():
if (baseProfile) {
// These fields are specific to base profiles & don't exist on the service profile schema
cmdArgs.tokenType = baseProfile.profile.tokenType;
cmdArgs.tokenValue = baseProfile.profile.tokenValue;
}
So I propose to change the 2 lines to this to keep the order of precedence going between service profile and base profile:
Describe the bug
Update tokenType & tokenValue command args to keep the order of precedence consistent between service profile and base profile in Zowe Explorer.
Use Cases:
In Zowe Explorer, service profiles generally take precedence over base profiles, However:
The lines that are causing this are here in the new `Profiles.ts/ getCombinedProfile():
So I propose to change the 2 lines to this to keep the order of precedence going between service profile and base profile:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: