# Connecting Kakao login

To let your users sign up with their Kakao accounts, you need to register your service with Kakao and get a REST API key and Client Secret.

This page walks you through getting the REST API key and Client Secret. To enter the two values in WEEGLOO, see [Enter the REST API key and Client Secret in WEEGLOO](#back-to-weegloo).

## Get the REST API key and Client Secret from Kakao {#get-credentials}

Sign in to Kakao, then follow the five steps below in order.

::step-overview

::::::step{title="Create an app" id="create-app"}
:::note
If you already have an app you've been using, you can use it as is instead of creating a new one. In that case, skip this step and go to [Switch to a Biz app](#switch-to-biz).
:::

1. Open your applications screen (<https://developers.kakao.com/console/app>).
2. Click **Create app**.
3. Upload an image under **App icon**.
4. In **App name**, enter the name your users will see (for example, `Cozy Closet`).
5. In **Company name**, enter the name of your store or company. It can be the same as the app name.
6. In **Category**, select the one that fits your service (for example, `Lifestyle`).
7. In **App primary domain**, enter your site's address (for example, `https://shop.example.com`).
8. Check the box at the very bottom to agree to the Operating Policy.
9. Click **Save**.

   ![The Create app dialog. An image is uploaded under App icon, App name and Company name hold "Cozy Closet", and App primary domain holds the site address](/_img/en-US/manual/service-users/service-login/images/kakao-01-create-app.webp)

   <!-- 캡쳐 필요(재촬영): 예시 사이트 주소를 바꿨다. 지금 캡쳐의 앱 대표 도메인 칸에는 옛 예시 도메인이 찍혀 있으므로 https://shop.example.com 으로 다시 찍는다 / 사전 준비: 카카오 Developers의 앱 생성 모달. 앱 아이콘에 이미지 하나, 앱 이름과 회사명 "포근한 옷장", 카테고리 "라이프스타일", 앱 대표 도메인 https://shop.example.com, 운영정책 동의 체크. 저장은 누르지 않는다 -->
::::::

::::::step{title="Switch to a Biz app" id="switch-to-biz"}
Unless you switch to a Biz app, you can't make email a required consent item.

:::note
If the badge above the app name already says **Biz app**, skip this step and go to [Turn on Kakao Login](#enable-login).
:::

1. If the app screen isn't open, click the app you'll use for login on your applications screen (<https://developers.kakao.com/console/app>).
2. Go to **App Settings → App → General**.
3. Find the **Business information** section.

   ![The Business information section. It has the Register business information button and the notice "This app is not a Biz app", with the Switch to Biz app for an individual button below](/_img/en-US/manual/service-users/service-login/images/kakao-02-business-info.webp)

The next steps depend on whether you have a business registration number. Follow only the one that fits your situation.

:::::tabs
::::tab{label="If you have a business registration number"}
4. Click **Register business information**.
5. In **Business Type**, select **Domestic business (Korea)**. If you're not a domestic business, select **Overseas business (outside Korea)**.
6. Enter your **Business registration number**.
7. Click **Confirm**.

![The Business information dialog. Domestic business (Korea) is selected in Business Type, with three Business registration number fields below it](/_img/en-US/manual/service-users/service-login/images/kakao-03-biz-company.webp)
::::
::::tab{label="If you don't have a business registration number"}
4. If you haven't completed identity verification yet, complete it first. You can get there from the profile area at the top right of the screen, under **Account settings → Identity verification**.
5. Come back to this screen and click **Switch to Biz app for an individual**.
6. In **Purpose**, select **To set email to Required consent item**.
7. Click **Save**.

![The Switch to Biz app for an individual dialog. To set email to Required consent item is selected in Purpose](/_img/en-US/manual/service-users/service-login/images/kakao-04-biz-individual.webp)

:::note
If you've never agreed to the Kakao Business consolidated Terms of Service, a terms agreement screen opens after you click **Save**. Once you agree, the switch continues.
:::
::::
:::::

Either way, once the switch is done, the badge above the app name changes to **Biz app**.
::::::

::::::step{title="Turn on Kakao Login" id="enable-login"}
1. If the app screen isn't open, click the app you'll use for login on your applications screen (<https://developers.kakao.com/console/app>).
2. Go to **Product Settings → Kakao Login → General**.
3. Turn on the **State** toggle under **Usage settings**.
4. In the confirmation dialog, click **Activate**.

   ![The Product Settings → Kakao Login → General screen. The State toggle under Usage settings is on, with the OpenID Connect toggle below it](/_img/en-US/manual/service-users/service-login/images/kakao-05-enable-login.webp)

:::note
When you turn on the toggle, an **OpenID Connect** toggle appears below it. Leave that toggle as it is.
:::
::::::

::::::step{title="Set up the consent items" id="configure-scopes"}
On Kakao Login's **Consent Items** screen, you must change all three items, **Email**, **Nickname**, and **Profile image**, to **Required consent**. If you leave even one of them unchanged, users are stopped at a Kakao error screen before they can even start logging in.

1. Go to **Product Settings → Kakao Login → Consent Items**.
2. In the **Personal information** table, click **Set** on the **Email** row.
3. Select **Required consent**.
4. In **Purpose of consent**, enter `Member identification`.
5. Click **Save**.

   ![The consent item settings dialog. Required consent is selected for Email, and "Member identification" is entered in Purpose of consent](/_img/en-US/manual/service-users/service-login/images/kakao-06-consent-setting.webp)

6. Change **Nickname** the same way, starting from step 2. Its **Purpose of consent** is `Display member name`.
7. Change **Profile image** the same way, starting from step 2. Its **Purpose of consent** is `Display member profile`.
8. Check that the **State** of all three items is **Required consent**.

   ![The Personal information table on the Consent Items screen. The State of Nickname, Profile image, and Email is Required consent, and the other items are Unauthorized](/_img/en-US/manual/service-users/service-login/images/kakao-07-consent-list.webp)
::::::

::::::step{title="Copy the REST API key and Client Secret" id="copy-credentials"}
1. Go to **App Settings → App → Platform Key**.

   ![The App Settings → App → Platform Key screen. Three cards sit side by side: REST API key, JavaScript key, and Native app key](/_img/en-US/manual/service-users/service-login/images/kakao-08-platform-keys.webp)

2. Click the **REST API key** card. Three kinds of keys are shown, and the REST API key is the only one you use.

   ![The Edit REST API key screen. The REST API key value is at the top, the Kakao Login Redirect URI field below it is empty, and further down are the Kakao Login and Business Authentication rows of Client Secret](/_img/en-US/manual/service-users/service-login/images/kakao-09-rest-api-key.webp)

3. Paste the address below into the **Kakao Login Redirect URI** field. Select your *Space* to insert its *Space* ID into the address.

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

   :::note
   If you're not sure which *Space* is yours and you've left the integration to an AI agent, you can also ask the agent. Ask in the chat, "Tell me the Redirect URI to register for Kakao login", and you'll get the complete address.
   :::

4. Copy the **REST API key** value at the top.
5. Copy the **Code** on the **Kakao Login** row under **Client Secret**. It's not the code on the **Business Authentication** row below it.
6. Click **Save**.

:::note
The secret is confidential, so don't share it with anyone or write it down anywhere public.
:::
::::::

## Enter the REST API key and Client Secret in WEEGLOO {#back-to-weegloo}

You now have the REST API key and Client Secret. Here's which field each value goes into in Content Studio.

| Kakao screen | Content Studio |
|---|---|
| **REST API key** | **REST API key** |
| The **Kakao Login** code under **Client Secret** | **Client Secret - Kakao Login Code** |

What you do next depends on how you've been working so far.

If you've been setting things up yourself in Content Studio, follow these steps.

1. Go back to [Turn on social login](/manual/service-users/service-login.md#turn-on-social-login).
2. In **Login Providers**, click the **Enable** button on the **Kakao** row.
3. In the **Enter in Weegloo** step, enter the REST API key in the **REST API key** field.
4. Enter the Kakao Login code from the Client Secret in the **Client Secret - Kakao Login Code** field.
5. Click the **Save** button below the expanded instructions.
6. If you're turning on *ServiceLogin* for the first time, also click the **Save** button at the very bottom of the form. Clicking this button is what saves your values and turns on *ServiceLogin*.

If you're adding a provider to a *ServiceLogin* that's already on, you only need to click **Save** below the expanded instructions ([Turn on another social login](/manual/service-users/service-login.md#add-a-provider)).

If you've left the integration to an AI agent and it asked you to get the REST API key and Client Secret, paste both values into the chat as they are and carry on with what you were doing. The agent handles the rest of the setup from there.

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

- [Turn on ServiceLogin](/manual/service-users/service-login.md#turn-on-servicelogin): Covers the steps for entering these values in Content Studio and finishing the rest of the member login setup.
- [Service member login](/getting-started/core-concepts/service-users/service-login.md): Covers, with diagrams, what member login is and the flow up to accepting your first members.
- [Create a member role](/manual/service-users/service-user-role.md#create-a-member-role): Covers creating the *ServiceUserRole* that decides what signed-up members can read and write.
- [Auth API](/api/reference/auth-api.md): Covers technical specs, such as request formats, that you need to add login to your site's code.
