Loading files
b14c882eeThis file is pinned to the selected release. Download the original to open it in your design tool.
/// Share URLs keep the pinned owner identity in the fragment, outside server/access logs.
class SharedAgentLocation {
const SharedAgentLocation(this.id, this.ownerKey, this.environment);
final String id;
final String? ownerKey;
final String environment;
static SharedAgentLocation? parse(Uri uri) {
final match = RegExp(
r'^/s/([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/?$',
).firstMatch(uri.path);
if (match == null) return null;
String? key;
try {
key = Uri.splitQueryString(uri.fragment)['key'];
} on FormatException {
/* An incomplete link has no trusted identity. */
}
final env = uri.queryParameters['env'] ?? 'prod';
return SharedAgentLocation(match[1]!, key, env);
}
/// Only a local share path can be restored after OAuth. Never accept an external redirect.
static String? returnPath(Object? value) {
if (value is! String) return null;
final uri = Uri.tryParse(value);
if (uri == null ||
uri.hasScheme ||
uri.hasAuthority ||
parse(uri) == null) {
return null;
}
return uri.toString();
}
}
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/openharness-1322671404.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
b14c882eeThis file is pinned to the selected release. Download the original to open it in your design tool.