Update to new provisioning URL scheme (#762)

This commit is contained in:
technillogue 2021-10-09 11:55:33 -04:00 committed by GitHub
parent 6501ffcdac
commit d82f4a8717
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ public class DeviceLinkInfo {
public URI createDeviceLinkUri() {
final var deviceKeyString = Base64.getEncoder().encodeToString(deviceKey.serialize()).replace("=", "");
try {
return new URI("tsdevice:/?uuid="
return new URI("sgnl://linkdevice?uuid="
+ URLEncoder.encode(deviceIdentifier, StandardCharsets.UTF_8)
+ "&pub_key="
+ URLEncoder.encode(deviceKeyString, StandardCharsets.UTF_8));