I have a client with their own non-Wix site that requires an email login. Their members need to be able to access a course on my Wix site that normally requires a user to enter their email. Metrics from this course are saved to a collection under each user's email address. (NOTE - this is NOT a Wix course using their LMS app. This is a bespoke course created with Velo.)
Ideally, I'd like their members to sign in on their site, click the link to our site, and not have to reenter their email again when they get there.
Is it possible for their site to share the member's email address with my site so that I can confirm the access and save their metrics? I'm not sure yet if I will be given access to their site or will be working with their developer.
Hi Bethany,
Generally the answer is yes, but it would largely depend on the capabilities of the platform you are sending them to Wix from.
If you have full control over the redirect url you could add a query param to it (?query=param) and using that param identify them on the Wix side.
The question would be what data to send via the param. Sending just email could potentially be problematic as it would make your system vulnerable to exploitation (someone could just put an email in the params in hope of accessing the course).
A more secure approach would be some kind of token or "signature" created using their email and cryptographic hashing with a "secret" that could only be interpreted on the Wix backend with the corresponding "secret". To sum it up:
user@gmail.com clicks a button on site A (not wix).
In the backend of that site you get the users email, hash it with "thesecret" and create a redirect link like: yourwixsite.com?user=fjc348urf93unf93jf394jf0934nf934j3f4n
get the query param using wixLocationFrontend send that param to the backend
decipher the fjc348urf93unf93jf394jf0934nf934j3f4n using "thesecret" also stored on the Wix side and get user@gmail.com
allow the user to save to the collection items under the email above.
By the way - there are ways to do this even more securely if navigation isn't necessary. i.e if the user doesn't have any actions they need to take on the Wix side.
Hope that helps!
Eitan