# Connecting Naver Login

To let shoppers sign up with a Naver account, you first register your service with Naver and receive two values. They are the client ID and the client secret.

This page covers the order in which you receive those two values. Putting the values you received into WEEGLOO is covered in [Putting the values you received into WEEGLOO](#back-to-weegloo).

## The address to copy first {#redirect-uri}

When a shopper finishes logging in at Naver, Naver sends the result back to a set address. You have to register this address with Naver, so copy it first. You paste it in step 1.

Pick your *Space* below and you get the address with the identifier filled in.

```weegloo-redirect-uri
{
  "template": "https://auth.weegloo.com/v1/spaces/{spaceId}/login/oauth2/code/{provider}",
  "provider": "naver"
}
```

:::note
If you would rather fill it in yourself, put the identifier of your *Space* in the `{spaceId}` slot. Open that *Space* in the content studio and look at the browser address bar. The value that comes after `/spaces/` is the identifier.

This address is not your site's address. It is where WEEGLOO receives the login result. So it is settled now even if you have not built your site yet. If you turned on **Naver** in the content studio, the same address appears in **Step 1**, so you can copy it from there.
:::

## Getting the two values from Naver {#get-credentials}

Sign in to Naver, then work through the two steps below in order. What you do here costs nothing.

::::step{title="Registering an application"}
1. Open the application registration screen (<https://developers.naver.com/apps/#/register>).
2. In **애플리케이션 이름**(Application Name), enter the name shoppers will see (for example, `Cozy Closet`).
3. In **사용 API**(Use API), choose **네이버 로그인**(Naver Login).

   ![The application registration screen. The left menu, the Application Name box, and the Use API dropdown are visible](/_img/en-US/getting-started/core-concepts/service-users/service-login/images/naver-01-register-form.webp)

4. In the **제공 정보 선택**(Select Provided Information) table, check **필수**(Required) on these three rows only: **연락처 이메일 주소**(Contact Email Address), **별명**(Nickname), and **프로필 사진**(Profile Picture).
5. In **환경 추가**(Add Environment), choose **PC 웹**(PC Web).

   ![The Select Provided Information table. Required is checked for Contact Email Address, Nickname, and Profile Picture, and the Add Environment dropdown is below it](/_img/en-US/getting-started/core-concepts/service-users/service-login/images/naver-02-provided-info.webp)

6. In **서비스 URL**(Service URL), enter your site's address (for example, `https://cozy-closet.com`).
7. In the first box of **네이버 로그인 Callback URL**, paste the address you copied in [The address to copy first](#redirect-uri).

   ![The PC Web panel. Service URL holds the site address, and the first box of Naver Login Callback URL holds the WEEGLOO address](/_img/en-US/getting-started/core-concepts/service-users/service-login/images/naver-03-pc-web.webp)

8. At the very bottom of the form, check the two checkboxes in **서비스 이용 동의**(Agree to the Terms of Service).
9. Click **등록하기**(Register).

   ![The Terms of Service agreement area. Two checkboxes are there, with the Register and Cancel buttons below them](/_img/en-US/getting-started/core-concepts/service-users/service-login/images/naver-07-submit.webp)

:::note{variant="warning" title="You have to fill in the two address boxes exactly"}
For **서비스 URL**, write only the domain without www, and write the same domain as your site. For **Callback URL**, enter only the single address you copied above and do not add more boxes. If either of the two boxes is off, Naver login is restricted until you fix it.
:::

:::note
Do not choose the remaining items in **제공 정보 선택**. One environment, **PC 웹**, is enough.
:::
::::

::::step{title="Copying the client ID and the client secret"}
When you click **등록하기**, the **개요**(Overview) tab of the application you just registered opens. The two values are in **애플리케이션 정보**(Application Information).

1. Copy the value written in **Client ID**.
2. Click **보기**(View) next to **Client Secret**.
3. Copy the value that appears.

   ![The Overview tab after registration is finished. Client ID is visible in Application Information, and Client Secret is hidden with a View button next to it](/_img/en-US/getting-started/core-concepts/service-users/service-login/images/naver-04-client-id.webp)

:::note
**Client ID** stays on this screen, and you can see **Client Secret** again whenever you click **보기**. That said, the secret is a secret value. Do not tell it to anyone, and do not write it down anywhere public.
:::
::::

## Every shopper can log in only after you pass the review {#review}

The application you registered has a **개발 상태**(Development Status) of **개발 중**(In Development). The WEEGLOO connection does not have to wait for the review. Once you put the two values in, login works right away.

![The Naver Login item on the Overview tab. Development Status carries the In Development badge and the Request Naver Login Review button](/_img/en-US/getting-started/core-concepts/service-users/service-login/images/naver-06-review-status.webp)

While it is **개발 중**, only the IDs registered on the **멤버관리**(Member Management) tab can log in. You do not have to register your own ID. To test with another account, enter that ID in **테스터 ID 등록**(Register Tester ID) on that tab.

![The Member Management tab. The Register Administrator ID and Register Tester ID areas are visible](/_img/en-US/getting-started/core-concepts/service-users/service-login/images/naver-05-members.webp)

When you are ready to open it to every shopper, click **네이버 로그인 검수요청**(Request Naver Login Review) on the **개요** tab. The materials you need and the review criteria are in the [Naver docs](https://developers.naver.com/docs/login/devguide/devguide.md).

## Putting the values you received into WEEGLOO {#back-to-weegloo}

Now you have the two values in hand. From here the path splits depending on how you have been working so far.

If you were configuring this directly in the content studio, follow these steps.

1. Go back to turning on social login in [Service Member Login](/getting-started/core-concepts/service-users/service-login.md#turning-on-social-login).
2. Turn on **Naver**.
3. Enter the client ID in the **Client ID** box in **Step 2**.
4. Enter the client secret in the **Client Secret** box.
5. Click **Save**.

If you handed the integration to an AI agent and were told to go and get the values, paste the two values you received into the chat as they are and carry on with what you were doing. The agent handles the rest of the configuration from there.

## What to do next {#what-to-do-next}

- [Service Member Login](/getting-started/core-concepts/service-users/service-login.md): put the values you received into the content studio and finish the rest of the member login configuration.
- [Member Roles and Permissions](/getting-started/core-concepts/service-users/service-user-role.md): create the *ServiceUserRole* that decides what a signed-up member can see and use.
- [Auth API](/api/reference/auth-api.md): covers technical specifications such as the request format you need when wiring login into your own site's code.
