Thread:Project:Support desk/How to login via URL?/reply

You can log in via the api, see API:Login. However that requires more than just a link (but still something entirely accomplishable via ajax if the moodle site is on the same domain).

Otherwise you might be looking at writing a custom AuthPlugin or at the very least a custom extension using the UserLoadFromSession hook.