Skip to content

Commit a25e757

Browse files
authored
Fix sign out in the Getting Started panel (#4043)
* Fix sign out option and add password field for secret access key * added changelog * detekt
1 parent c63b1da commit a25e757

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Fixed sign out button in the CodeWhisperer panel for Getting Started Page"
4+
}

jetbrains-core/src/software/aws/toolkits/jetbrains/core/gettingstarted/SetupAuthenticationDialog.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,8 @@ class SetupAuthenticationDialog(
473473
}
474474

475475
row(message("gettingstarted.setup.iam.secret_key")) {
476-
textField()
477-
.errorOnApply(message("gettingstarted.setup.error.not_empty")) { it.text.isBlank() }
476+
passwordField()
477+
.errorOnApply(message("gettingstarted.setup.error.not_empty")) { it.password.isEmpty() }
478478
.bindText(state.iamTabState::secretKey)
479479
}
480480
}

jetbrains-core/src/software/aws/toolkits/jetbrains/core/gettingstarted/editor/GettingStartedPanel.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,7 @@ class GettingStartedPanel(
836836
row {
837837
link(message("toolkit.login.aws_builder_id.already_connected.reconnect")) {
838838
val validConnection = checkBearerConnectionValidity(project, BearerTokenFeatureSet.CODEWHISPERER)
839+
839840
val connection = validConnection.activeConnectionBearer
840841
if (connection is ProfileSsoManagedBearerSsoConnection) {
841842
if (validConnection.connectionType == ActiveConnectionType.IAM_IDC) {
@@ -847,6 +848,8 @@ class GettingStartedPanel(
847848
deleteSsoConnectionCW(connection)
848849
}
849850
}
851+
}
852+
if (connection != null) {
850853
logoutFromSsoConnection(project, connection) {
851854
controlPanelVisibility(panelConnected, panelNotConnected)
852855
}

0 commit comments

Comments
 (0)