Skip to content

Commit 91e70f9

Browse files
author
elchananarb
committed
revert oauth
1 parent b55d2f6 commit 91e70f9

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

src/webview/authenticationWebview.ts

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -115,41 +115,43 @@ export class AuthenticationWebview {
115115
<html>
116116
117117
<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>
123123
124124
125125
</head>
126126
127127
<body>
128128
129129
<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>
134134
<div id="authContainer" class="auth-container hidden">
135135
<div class="auth-form-title">Checkmarx One Authentication</div>
136136
<div id="loginForm">
137137
<div class="radio-group">
138-
139-
<label style="display: none;">
138+
<!-- <label style="display: none;"> -->
139+
<label>
140140
<input type="radio" name="authMethod" value="oauth" checked> OAuth
141141
</label>
142142
143143
<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
145146
</label>
146147
</div>
147148
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"> -->
149151
<label for="baseUri" class="form-label">Checkmarx One Base URL:</label>
150152
<input type="text" id="baseUri" class="auth-input" placeholder="Enter Checkmarx One Base URL">
151153
<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>
153155
154156
155157
<label for="tenant" class="form-label">Tenant Name:</label>
@@ -158,9 +160,10 @@ export class AuthenticationWebview {
158160
</div>
159161
160162
<!-- (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">
162165
<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">
164167
</div>
165168
<button id="authButton" class="auth-button" disabled><img src="${loginIcon}" alt="login"/>Sign in to Checkmarx</button>
166169
</div>
@@ -291,4 +294,5 @@ export class AuthenticationWebview {
291294
}
292295
}
293296
}
294-
}
297+
}
298+

0 commit comments

Comments
 (0)