Creating restricted area on site

Hello,
I am looking for a way to achieve functionality of restricted web pages, access to which is authorized via 3-rd party API.
I would like to have a Login button on Public page where users enter there User/Pass , which are send to 3-rd party API for authorization and if OKed - those customers to have access to Restricted pages.
Is there any way to achieve this functionality with WIX ?
Regards,
Vasil

Hey Vasil,

You might want to be able to do this, but I suspect it might be a bit complicated. To start, read Accessing 3rd Party Services . This will help you understand the process and get you started.

Good luck and have fun,

Yisrael

Hello Yisrael,
I have checked it and already have working the part talking to 3-rd party and getting response.
But I do not any idea how to organize Restricted Pages Area and use response from 3-rd party to allow access there. Would you help with that part ?
Regards,
Vasil

Hi Vasil,

You can use the wix-users API for handling access. You’ll have to figure out on your own how to integrate with your 3rd pary authorization, but with some creative code you should be able to get it working.

Yisrael