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
Is your feature request related to a problem? Please describe.
SSH No Ports requires that we fetch the keys from remote (since we intentionally do not have a local store for ssh no ports), but there are no client options that support scanning directly from remote.
Right now the workaround is to manually build a scan verb:
Future<List<AtKey>> _getAtKeysRemote(
{String? regex,
String? sharedBy,
String? sharedWith,
bool showHiddenKeys =false}) async {
var builder =ScanVerbBuilder()
..sharedWith = sharedWith
..sharedBy = sharedBy
..regex = regex
..showHiddenKeys = showHiddenKeys
..auth =true;
var scanResult =await atClient.getRemoteSecondary()?.executeVerb(builder);
scanResult = scanResult?.replaceFirst('data:', '') ??'';
var result =<AtKey?>[];
if (scanResult.isNotEmpty) {
result =List<String>.from(jsonDecode(scanResult)).map((key) {
try {
returnAtKey.fromString(key);
} onInvalidSyntaxException {
logger.severe('$key is not a well-formed key');
} onExceptioncatch (e) {
logger.severe(
'Exception occurred: ${e.toString()}. Unable to form key $key');
}
}).toList();
}
result.removeWhere((element) => element ==null);
return result.cast<AtKey>();
}
Describe the solution you'd like
Add an options object which contains something similar to atClient.get's byPassCache option or atClient.put's useRemoteAtServer option.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Please note that this item is not urgent (probably only a p2 or p3), since the above workaround works perfectly fine for the time being. However it would be helpful to eventually add a feature like this, hence the ticket.
gkc
changed the title
Add useRemote (or similar option name) to atClient.getKeys/.getAtKeys
AtClient: Add useRemote (or similar option name) to atClient.getKeys/.getAtKeys
Nov 14, 2023
Is your feature request related to a problem? Please describe.
SSH No Ports requires that we fetch the keys from remote (since we intentionally do not have a local store for ssh no ports), but there are no client options that support scanning directly from remote.
Right now the workaround is to manually build a scan verb:
Describe the solution you'd like
Add an options object which contains something similar to atClient.get's byPassCache option or atClient.put's useRemoteAtServer option.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: