@@ -115,41 +115,43 @@ export class AuthenticationWebview {
115
115
<html>
116
116
117
117
<head>
118
- <meta charset="UTF-8">
119
- <link href="${ styleBootStrap } " rel="stylesheet">
120
- <link href="${ styleAuth } " rel="stylesheet">
121
- <script nonce="${ nonce } " src="${ scriptBootStrap } "></script>
122
- <title>Checkmarx One Authentication</title>
118
+ <meta charset="UTF-8">
119
+ <link href="${ styleBootStrap } " rel="stylesheet">
120
+ <link href="${ styleAuth } " rel="stylesheet">
121
+ <script nonce="${ nonce } " src="${ scriptBootStrap } "></script>
122
+ <title>Checkmarx One Authentication</title>
123
123
124
124
125
125
</head>
126
126
127
127
<body>
128
128
129
129
<div id="loading">
130
- <div class="spinner-border" role="status">
131
- <span class="visually-hidden">Checking authentication...</span>
132
- </div>
133
- </div>
130
+ <div class="spinner-border" role="status">
131
+ <span class="visually-hidden">Checking authentication...</span>
132
+ </div>
133
+ </div>
134
134
<div id="authContainer" class="auth-container hidden">
135
135
<div class="auth-form-title">Checkmarx One Authentication</div>
136
136
<div id="loginForm">
137
137
<div class="radio-group">
138
-
139
- <label style="display: none;" >
138
+ <!-- <label style="display: none;"> -->
139
+ <label>
140
140
<input type="radio" name="authMethod" value="oauth" checked> OAuth
141
141
</label>
142
142
143
143
<label>
144
- <input type="radio" name="authMethod" value="apiKey" checked >API Key
144
+ <!-- <input type="radio" name="authMethod" value="apiKey" checked >API Key -->
145
+ <input type="radio" name="authMethod" value="apiKey">API Key
145
146
</label>
146
147
</div>
147
148
148
- <div style="display: none;" id="oauthForm" class="auth-form">
149
+ <div id="oauthForm" class="auth-form">
150
+ <!-- <div style="display: none;" id="oauthForm" class="auth-form"> -->
149
151
<label for="baseUri" class="form-label">Checkmarx One Base URL:</label>
150
152
<input type="text" id="baseUri" class="auth-input" placeholder="Enter Checkmarx One Base URL">
151
153
<div id="urls-list" class="autocomplete-items"></div>
152
- <div id="urlError" class="text-danger mt-1" style="display: none;"></div>
154
+ <div id="urlError" class="text-danger mt-1" style="display: none;"></div>
153
155
154
156
155
157
<label for="tenant" class="form-label">Tenant Name:</label>
@@ -158,9 +160,10 @@ export class AuthenticationWebview {
158
160
</div>
159
161
160
162
<!-- (We need to return it to the next div ) (class="hidden">) -->
161
- <div id="apiKeyForm"
163
+ <!-- <div id="apiKeyForm" -->
164
+ <div id="apiKeyForm" class="hidden">
162
165
<label for="apiKey" class="form-label">Checkmarx One API Key:</label>
163
- <input type="password" id="apiKey" placeholder="Enter Checkmarx One API Key" class="auth-input">
166
+ <input type="password" id="apiKey" placeholder="Enter Checkmarx One API Key" class="auth-input">
164
167
</div>
165
168
<button id="authButton" class="auth-button" disabled><img src="${ loginIcon } " alt="login"/>Sign in to Checkmarx</button>
166
169
</div>
@@ -291,4 +294,5 @@ export class AuthenticationWebview {
291
294
}
292
295
}
293
296
}
294
- }
297
+ }
298
+
0 commit comments