# How to make integration from Company Intranet Website with Wix site?

**URL:** <https://forum.wixstudio.com/t/how-to-make-integration-from-company-intranet-website-with-wix-site/22286>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [April 14, 2019, 3:40pm UTC](https://forum.wixstudio.com/t/how-to-make-integration-from-company-intranet-website-with-wix-site/22286 "2019-04-14T15:40:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerrypeter](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/jerrypeter/32/11177_2.png) [@jerrypeter](https://forum.wixstudio.com/u/jerrypeter)\
**Post date:** [April 14, 2019, 3:40pm UTC](https://forum.wixstudio.com/t/how-to-make-integration-from-company-intranet-website-with-wix-site/22286/1 "2019-04-14T15:40:41Z")

</div>

I have a Company Intranet web site, and i also have Wix Site.  
My Wix site content is private only for employee already login to Company Intranet Web site.

I want to make integration with this to website (Company Intranet & Wix Site), how to do that ?

I want to create a Banner link in company intranet website, and when employee user click that banner will be direct to open Wix Site and also login automaticly as a Wix Site user, so they can access content in My Wix Site.

But if someone directly open my Wix Site, they need to register and login first before access our content.

I want try this scenario for do that need,

1. I Register all employee email address as Wix Site member with same password.
2. I make http-functions.js in Backend script, and i create get\_userlogin function for accept data (username & password) login for our company Website
3. I Create banner on our company intranet web site, and when employee user click this banner will be call our get\_userlogin function in Wix site Backend script.

Right now get\_userlogin function already can read data that i parsing from Intranet, but i still have problem to make automaticly login and redirect to Wix site page.

Need help for this,  
Our is there any other solution / screnario that i can try ?

Thanks A Lot  
J

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [April 14, 2019, 4:19pm UTC](https://forum.wixstudio.com/t/how-to-make-integration-from-company-intranet-website-with-wix-site/22286/2 "2019-04-14T16:19:45Z")

</div>

Have a read of http functions and Wix Fetch.  
[https://www.wix.com/corvid/reference/wix-http-functions.html](https://www.wix.com/corvid/reference/wix-http-functions.html)  
[https://support.wix.com/en/article/corvid-exposing-a-site-api-with-http-functions](https://support.wix.com/en/article/corvid-exposing-a-site-api-with-http-functions)  
[https://www.wix.com/corvid/reference/wix-fetch.html](https://www.wix.com/corvid/reference/wix-fetch.html)  
[https://support.wix.com/en/article/corvid-accessing-third-party-services-with-the-fetch-api](https://support.wix.com/en/article/corvid-accessing-third-party-services-with-the-fetch-api)

---

<div class="post-metadata">

**Author:** ![jerrypeter](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/jerrypeter/32/11177_2.png) [@jerrypeter](https://forum.wixstudio.com/u/jerrypeter)\
**Post date:** [April 15, 2019, 1:23am UTC](https://forum.wixstudio.com/t/how-to-make-integration-from-company-intranet-website-with-wix-site/22286/3 "2019-04-15T01:23:34Z")

</div>

Hello @givemeawhisky

I already try and explore http-function, this is my code in http-functions.js file

```javascript
import wixUsers from 'wix-users-backend';
import { ok, badRequest } from 'wix-http-functions';

export function get_signin(request) {
 const response = {
 "headers": {
 "Content-Type": "application/json"
    }
  };

 const username = request.path[0];
 const password = request.path[1];
 let result = myBackendFunction(username, password);

  response.body = {
 "Result ": + result 
  };

 return ok(response);
}

```

I try to call my function with this url : [https://www.ciputralearningcenter.com/\_functions/signin/user@gmail.com/hello](https://www.ciputralearningcenter.com/_functions/signin/user@gmail.com/hello)

And I get this result

```javascript
{"Post Data ":{"isFulfilled":false,"isRejected":false}}

```

Can i make automaticly login in http-function.js file and after login success i want to redirect to HOME ?  
Or do you have any other alternative collection ?

Thanks A Lot @givemeawhisky, i will try the other link you give ?

---

<div class="post-metadata">

**Author:** ![IvW](https://avatars.discourse-cdn.com/v4/letter/i/9e8a1a/32.png) [@IvW](https://forum.wixstudio.com/u/IvW)\
**Post date:** [April 4, 2025, 2:27pm UTC](https://forum.wixstudio.com/t/how-to-make-integration-from-company-intranet-website-with-wix-site/22286/4 "2025-04-04T14:27:37Z")

</div>

HI Jerry, did you get this work in the end?

Hi @noahlovell,

I have created a new topic setup, are you able to help me with this?

> [@Auto Login to member zone from another webapp](https://forum.wixstudio.com/t/auto-login-to-member-zone-from-another-webapp/70071):
>
> Question: I have a Next.js SPA hosted on AWS S3 with authentication from cognito. I would like to have a button on my Next.js site, that when pressed, opens a wix site in a new tab and auto logs in the user to the members zone. All pages of the wix site will be in the members area. What have you already tried: Do i just follow the steps in the Github authentication walkthrough? [Set up an Externally-Managed Login Flow with Next.js and Github](https://dev.wix.com/docs/go-headless/tutorials-templates/other-tutorials/set-up-an-externally-managed-login-flow-with-next-js-and-github) This example uses oAuth, will I face any issues us…

---

<div class="post-metadata">

**Author:** ![noahlovell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/noahlovell/32/118920_2.png) [@noahlovell](https://forum.wixstudio.com/u/noahlovell)\
**Post date:** [April 4, 2025, 3:24pm UTC](https://forum.wixstudio.com/t/how-to-make-integration-from-company-intranet-website-with-wix-site/22286/5 "2025-04-04T15:24:41Z")

</div>

@IvW this topic is several years old - let’s get a new one started with more information about your setup and use case.

Closing replies 🙂

---

<div class="post-metadata">

**Author:** ![noahlovell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/noahlovell/32/118920_2.png) [@noahlovell](https://forum.wixstudio.com/u/noahlovell)\
**Post date:** [April 4, 2025, 3:24pm UTC](https://forum.wixstudio.com/t/how-to-make-integration-from-company-intranet-website-with-wix-site/22286/6 "2025-04-04T15:24:43Z")

</div>

Closed on April 4, 2025, 3:24pm UTC


