# Activating Two-Factor Authentication

## Prerequisite

* มี account Nipa Cloud Space ([สมัครสมาชิก](/ncs-documents/nipa-cloud-space-overview/ncs-user-account/create-nipa-cloud-space-account.md))
* login เข้าสู่ระบบ NIPA Cloud Space ([ขั้นตอนการ Login](/ncs-documents/nipa-cloud-space-overview/ncs-user-account/loging-in-to-nipa-cloud-space.md))
* มี Authenticator Application ติดตั้งไว้บนโทรศัพท์ (แนะนำให้ใช้ [Google Authenticator](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2\&hl=en\&gl=US))

## Instructions

### 1. เข้าสู่หน้า Projects Management

ลงทะเบียนหรือ login เข้าสู่ระบบ NIPA Cloud Space เพื่อเข้าสู่หน้า "Projects Management" หรือภายใน project ก็ได้เช่นกัน

<figure><img src="/files/XR7fD6vxewQJZX9vqVRJ" alt=""><figcaption><p>Projects Management</p></figcaption></figure>

### 2. เข้า Menu Two-Factor Authentication

กดที่ชื่อ user ที่มุมขวาบน เพื่อแสดง menu จัดการ account และเลือก "Two-Factor Authentication"

<figure><img src="/files/fPGfVAZK8bpQLP6CffDm" alt=""><figcaption><p>Two-Factor Authentication Menu</p></figcaption></figure>

### 3. เริ่มเปิดใช้งาน Two-Factor Authentication

ระบบจะแสดง menu Two-Factor Authentication ให้กดที่ปุ่ม "ACTIVATE" เพื่อเริ่มการเปิดใช้งาน

<figure><img src="/files/TUrrmhVJOyKE6Mc4yCrN" alt=""><figcaption><p>Two-Factor Authentication</p></figcaption></figure>

### 4. ลงทะเบียน Authenticator Application

ระบบจะแสดง QR code และ code ในรูปแบบ text สำหรับลงทะเบียนบน authenticator

ให้เปิด authenticator และเลือกลงทะเบียน application ใหม่ โดยแสกน QR code หรือใส่ code ในรูปแบบ text เข้าไป&#x20;

เมื่อลงทะเบียนเสร็จ ใน menu Activate Two-Factor Authentication ให้กดปุ่ม "NEXT"

<figure><img src="/files/Ms9Z6wOR7BzzU2VFToZY" alt=""><figcaption><p>Set Up Authenticator</p></figcaption></figure>

### 5. Verify Authenticator

ให้กรอกเลข 6 หลักที่ได้จาก authenticator เพื่อ verify ว่าสามารถใช้งาน authenticator นี้ได้ จากนั้นกดปุ่ม "VERIFY"

<figure><img src="/files/gjMNGgOyFMXvfDFeI3kJ" alt=""><figcaption><p>Verifying TOTP</p></figcaption></figure>

### 6. บันทึก Rescue Code

เมื่อ verify สำเร็จ ระบบจะแสดง Rescue Code ให้สามารถ copy และ download file เก็บไว้ได้ โดยสามารถใช้ Rescue Code นี้ในการ deactivate two-factor authentication ได้ ในกรณีที่ไม่สามารถเข้าถึง authenticator ที่ลงทะเบียนไว้ได้แล้ว

<figure><img src="/files/4wUKGAf57zKQp3eIIyij" alt=""><figcaption><p>Save Rescue Code</p></figcaption></figure>

### 7. Login โดยใช้ Two-Factor Authentication

หลัง activate การ login จะเพิ่มขั้นตอนการ verify TOTP ด้วย Authenticator ที่ลงทะเบียนไว้

{% hint style="warning" %}
หลังการ activate two-factor authentication ในช่วงแรก หากกลับเข้าไปดูใน menu Two-Factor Authentication หรือการ Login อาจจะยังไม่แสดงให้เห็นว่ามีการ activate ไว้แล้ว\
ต้องใช้เวลาประมาณ 10 นาที ก่อนที่จะส่งผล
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-epc.gitbook.io/ncs-documents/nipa-cloud-space-overview/ncs-user-account/activating-two-factor-authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
