Hello,
I'm trying to integrate with the license management interface. I've added the plug to my snapcraft.yml:
plugs:
licensing-service:
interface: content
content: licensing-service
target: $SNAP_DATA/licensing-service
I expect this to result in a unix socket being created in $SNAP_DATA/licensing-service. I can see that the licensing-service folder ends up getting created, but no unix socket. I've tried on a hardware ctrlX which is up to date and running e.g. rexroth-deviceadmin - 1.10.2.
What am I doing wrong?
Regards,
Roger
Solved! Go to Solution.
Please have a look to this topic.
Thank you, I have tried the example there but when I try to build the snap I am given the error:
failed to validate plug=licensing-service: `target` is required for content slot
The SDK documentation I have suggests I should be using the `target` key as well. I'm targetting core20.
Regards,
Roger
I updated the topic i mentioned above.
Did you check if your plug is connected?
Thank you for the update. I have added `licensing-service` to my list of plugs, but it has made no difference. I checked with `snap connections` and can see that the licensing service is connected to my application. Is there anything else I could provide that would help with this?
I've noticed I can access the licensing API by connecting to http://localhost/<licensing url>. I can see the logs telling me the the features I am requesting are not available, which is expected as I have no license to test with at the moment. Is connecting to localhost like this a workable solution?
Yes you can use the ctrlX License Manager API to check for your license (acquire a license). The description how to do it can be found here: https://<IP of your control>/doc/api/license-manager/#/Licenses/acquireLicense. Here you can also try out the API by sending some example requests to the license manager.
But make sure to 'Authorize' first by using the 'Available authorizations dialog'.
That's great, thank you. I hope that can make it into the documentation 🙂