+ {hasOperationsOnly ? (
+
+ ) : (
+ <>
+ {/* Discreet SSL troubleshooting link */}
+
+ u.url.startsWith('https'))?.url || gatewayUrls[0]?.url || '#'}
+ target="_blank"
+ style={{ fontSize: '0.75rem', opacity: 0.7 }}
+ >
+ Troubleshoot Gateway Connection (SSL)
+
- )}
-
- {/* Internal API Key Display and Regeneration - Only for deployed, non-discovered, non-self-hosted APIs */}
- {isDeployed && !isDiscovered && !isSelfHosted && (
-
-
-
-
-
+ InputProps={{
+ readOnly: true,
+ style: { fontFamily: 'monospace', fontSize: '0.875rem' }
+ }}
+ fullWidth
+ />
+
+
+
+
+
+
+ Expires in {expiresIn ? Math.round(expiresIn / 3600) : 1} hour(s)
+
-
-
- Expires in {expiresIn ? Math.round(expiresIn / 3600) : 1} hour(s)
-
-
-
- )}
-
-
- {
- if (apiKey) {
- console.log('🚀 [WSO2-Auth] Injecting Internal-Key into request:', req.url);
- // WSO2 Gateway expects testing keys in 'Internal-Key' header
- req.headers['Internal-Key'] = apiKey;
- } else {
- // Diagnostic log for debugging missing tokens
- console.warn('[WSO2-Auth] No Internal-Key in state at request time.');
- }
- return req;
- }}
- />
-
-
- )}
-
- {/* Tab 1: VSCode-like editor */}
- {activeTab === 1 && (
+ )}
+
+