Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control of invitation links #5406

Open
MBudkin opened this issue Oct 9, 2023 · 8 comments
Open

Control of invitation links #5406

MBudkin opened this issue Oct 9, 2023 · 8 comments

Comments

@MBudkin
Copy link

MBudkin commented Oct 9, 2023

You can add a client to a group of devices by downloading the Agent, or you can create an invitation link. But the problem is that the created links cannot be controlled after they are created (or I haven't found it).
That is, if I created a perpetual invitation link to download the Agent, then I will not be able to cancel it.
If I'm wrong, please correct me.

@si458
Copy link
Collaborator

si458 commented Oct 9, 2023

This is correct, but I think I get where u are coming from
You want the ability to delete invite links incase say u create a forever link and only meant to create a 1 hour link?

@MBudkin
Copy link
Author

MBudkin commented Oct 9, 2023

@si458
Yeah, something like that, thanks.

@si458
Copy link
Collaborator

si458 commented Oct 9, 2023

just looked at the source code, this might be abit tricky to do,
currently it doesnt store any agentlinks in the DB (so we would need to store the cookie somewhere)
it generates the cookie by taking values, encoding them with ur InvitationLinkEncryptionKey and returns u a url
then when a user goes to the link, it does it in reverse
decode cookie, verify cookie details, then display 404 or stuff

@MBudkin
Copy link
Author

MBudkin commented Oct 9, 2023

@si458
Thanks for your answer and for your work!

@MBudkin MBudkin closed this as completed Oct 9, 2023
@si458
Copy link
Collaborator

si458 commented Oct 9, 2023

ill keep it open as it is defo a feature request and a good one! i just need to look into it more

@IceOmny
Copy link

IceOmny commented Jul 2, 2024

Is there an easy way to change the guide image in the invitiation link?

@si458
Copy link
Collaborator

si458 commented Jul 2, 2024

Is there an easy way to change the guide image in the invitiation link?

Yes I can't remember which image it is, but simple create the folder meahcentral-web next to meshcentral-data then inside create public then copy the whole images folder from node_modules/meshcentral/public/images to meshcentral-web/public/images, edit ur images, then restart ur meshcentral server and the web ui will load ur custom images

@IceOmny
Copy link

IceOmny commented Jul 5, 2024

meahcentral-web

Thank you for the fast replay :)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants