Translated by AI
ខ្លឹមសារភាសាខ្មែរនេះត្រូវបានបកប្រែដោយ AI ហើយអាចមានកំហុស។ យើងណែនាំឱ្យសិក្សាជាភាសាអង់គ្លេស។
This Khmer content is translated by AI and may contain errors. We recommend studying in English.
Lộ trình đang họcCurrent learning pathCurrent learning path
Cloudflare OneCloudflare OneCloudflare One
Bảo vệ users, access, SaaS và networks — follow-along từ tài khoản đến go-live.Secure users, access, SaaS, and networks — follow along from account to go-live.Secure users, access, SaaS, and networks — follow along from account to go-live.
Kết nối Entra ID, Okta hoặc GoogleConnect Entra ID, Okta, or GoogleConnect Entra ID, Okta, or Google
Mô-đun 2 — Kết nối nhà cung cấp danh tính
Mục tiêu: Kết nối hệ thống đăng nhập công ty để Cloudflare biết ai mỗi người dùng là và họ thuộc nhóm nào. Đây là nền tảng mà mọi chính sách sau này dựa vào.
👤 Ai làm việc này
Quản trị viên IT / Identity
⏱️ Thời gian
~45 phút
🎯 Kết thúc bạn sẽ có
Người dùng đăng nhập được bằng tài khoản công ty; nút Test hiện email + nhóm của họ
✋ Trước khi bắt đầu
Quyền quản trị nhà cung cấp danh tính của bạn, và team domain từ Mô-đun 1
Trước tiên: sao chép callback URL
Mọi identity provider đều cần giá trị này từ bạn. Ghi lại ngay (thay <team-name>):
Bạn sẽ làm việc này ở hai nơi: trước ở trung tâm quản trị Microsoft, rồi ở Cloudflare.
A1. Đăng ký ứng dụng trong Microsoft Entra
👉 Mở https://entra.microsoft.com và đăng nhập bằng tài khoản Global Administrator.
👉 Ở menu trái: Applications → Enterprise applications.
👉 Nhấp + New application (đầu trang).
👉 Nhấp + Create your own application (đầu trang).
📺 Một bảng mở bên phải. ⌨️ Đặt tên Cloudflare Access.
👉 Chọn tùy chọn "Register an application to integrate with Microsoft Entra ID (App you're developing)".
⚠️ Lưu ý:Đừng chọn ứng dụng gallery/SaaS — bạn đang đăng ký ứng dụng của mình.
👉 Nhấp Create.
📺 Bạn sẽ thấy: Trang "Register an application" với phần Redirect URI.
👉 Dưới Redirect URI, đặt dropdown nền tảng thành Web.
✅ Điểm kiểm tra: Bạn đang ở trang Overview của ứng dụng.
A2. Sao chép ba giá trị
Trên trang Overview của ứng dụng:
📋 Sao chép Application (client) ID → lưu lại.
📋 Sao chép Directory (tenant) ID → lưu lại.
Bây giờ tạo secret:
3. 👉 Menu trái của ứng dụng → Certificates & secrets → tab Client secrets → + New client secret.
4. ⌨️ Description: Cloudflare. Đặt hạn dùng (ví dụ 24 tháng).
5. 👉 Nhấp Add.
6. 📋 Sao chép ngay secret Value (không phải "Secret ID") → lưu lại.
⚠️ Lưu ý: Secret Value chỉ hiện một lần. Nếu bạn rời trang, bạn phải xóa nó và tạo cái mới. Ngoài ra, khi hết hạn, mọi đăng nhập dừng — đặt nhắc lịch để gia hạn trước ngày hết hạn.
A3. Cấp quyền (để Cloudflare đọc được nhóm)
👉 Menu trái của ứng dụng → API permissions → + Add a permission.
👉 Chọn Microsoft Graph → Delegated permissions.
⌨️ Tìm và đánh dấu từng quyền trong bảy quyền sau:
Quyền
Vì sao
email
Email của người dùng
offline_access
Giữ phiên được làm mới
openid
Đăng nhập chuẩn
profile
Thông tin hồ sơ cơ bản
User.Read
Đọc người dùng đang đăng nhập
Directory.Read.All
Đọc directory của bạn
GroupMember.Read.All
Đọc thành viên nhóm (cần cho rule theo nhóm)
👉 Nhấp Add permissions.
👉 Nhấp Grant admin consent for [your org] → Yes.
✅ Điểm kiểm tra: Cả bảy quyền hiện "Granted for [your org]" với dấu kiểm xanh.
A4. Thêm Entra ID vào Cloudflare
👉 Vào bảng điều khiển Zero Trust (https://one.dash.cloudflare.com).
👉 Settings → Authentication (bạn có thể thấy là Integrations → Identity providers).
👉 Dưới Login methods, nhấp Add new.
👉 Chọn Azure AD (Microsoft Entra ID).
⌨️ Điền:
Trường
Dán
Application (client) ID
từ A2
Application (client) Secret
secret Value từ A2
Directory (tenant) ID
từ A2
👉 Bật các tùy chọn sau:
✅ Support Groups (để Cloudflare đọc nhóm Entra)
✅ Proof Key for Code Exchange (PKCE)
✅ Enable SCIM (khuyến nghị — tự đồng bộ user/group và có thể thu hồi quyền khi ai đó bị vô hiệu hóa)
👉 Nhấp Save.
✅ Điểm kiểm tra: "Azure AD" giờ xuất hiện trong danh sách phương thức đăng nhập. Bây giờ nhảy tới Phần E — Test.
👉 Dưới Assignments, chọn ai được dùng (ví dụ "Allow everyone in your organization"), rồi Save.
B2. Sao chép hai giá trị
Trên tab General của ứng dụng:
📋 Sao chép Client ID.
📋 Sao chép Client secret.
📝 Ghi lại Okta domain của bạn (URL bạn đăng nhập, ví dụ https://my-company.okta.com).
B3. Thêm Okta vào Cloudflare
👉 Zero Trust → Settings → Authentication → Add new → Okta.
⌨️ Điền:
Trường Cloudflare
Giá trị
App ID
Okta Client ID
Client secret
Okta Client secret
Okta account URL
https://my-company.okta.com
👉 Bật Support Groups nếu bạn sẽ dùng rule theo nhóm.
👉 Nhấp Save.
⚠️ Lưu ý: Nếu tổ chức bạn có hơn 100 nhóm Okta, bạn cũng phải tạo một read-only Okta API token và dán vào, nếu không tra cứu nhóm sẽ thất bại. (Okta admin → Security → API → Tokens → Create Token.)
✅ Điểm kiểm tra: "Okta" xuất hiện trong phương thức đăng nhập. Bây giờ sang Phần E — Test.
Phần C — Google Workspace
C1. Tạo thông tin OAuth trong Google
👉 Mở https://console.cloud.google.com → chọn hoặc tạo một project.
👉 Zero Trust → Settings → Authentication → Add new.
👉 Chọn Google (cho mọi Gmail) hoặc Google Workspace (cho tên miền công ty + nhóm).
⌨️ Dán Client ID và Client secret.
Với Google Workspace (để đọc nhóm): làm theo hướng dẫn trên màn hình để cung cấp admin email / domain để Cloudflare đọc được thành viên nhóm.
👉 Nhấp Save.
✅ Điểm kiểm tra: "Google Workspace" xuất hiện trong phương thức đăng nhập. Bây giờ sang Phần E — Test.
Phần D — Chưa có IdP doanh nghiệp?
Bạn vẫn có thể tiếp tục và kết nối IdP thật sau.
Cloudflare là đăng nhập mặc định cho tài khoản mới — người dùng đăng nhập bằng tài khoản Cloudflare.
Hoặc thêm One-time PIN (OTP): Zero Trust → Settings → Authentication → Add new → One-time PIN. Người dùng nhận mã qua email. Hợp cho nhà thầu và kiểm tra nhanh.
💡 Mẹo: Giữ OTP hoặc đăng nhập Cloudflare bật làm dự phòng ngay cả sau khi bạn thêm IdP doanh nghiệp — đó là lưới an toàn nếu kết nối SSO bao giờ bị đứt.
Phần E — Kiểm tra kết nối (mọi người đều làm)
👉 Trong Settings → Authentication → Login methods, tìm nhà cung cấp của bạn trong danh sách.
👉 Nhấp nhà cung cấp, rồi nhấp nút Test.
📺 Bạn sẽ thấy: Một tab mới mở, chạy đăng nhập thật với nhà cung cấp của bạn, rồi hiện trang thành công liệt kê danh tính Cloudflare nhận được — email của người dùng và (quan trọng) nhóm của họ.
✅ Điểm kiểm tra — đây là thời điểm then chốt:
✅ Đăng nhập thành công.
✅ Kết quả hiện email của bạn.
✅ Kết quả hiện nhóm của bạn (ví dụ Engineering, Finance).
⚠️ Nếu thiếu nhóm: quyền/claim nhóm chưa được đặt. Quay lại nhà cung cấp:
Entra ID: xác nhận GroupMember.Read.All đã được thêm và admin consent đã cấp (Bước A3), và Support Groups đang bật trong Cloudflare (A4).
Okta: bật groups claim, và thêm API token nếu bạn có >100 nhóm.
Google: đảm bảo bạn chọn Google Workspace (không phải Google thường) và đã cấp quyền admin/domain.
Nếu test này không có nhóm, các rule truy cập theo nhóm ở mô-đun sau sẽ không khớp. Sửa điều này trước khi tiếp tục.
Bạn sẽ cài Cloudflare One Client để thiết bị kết nối an toàn và báo cáo sức khỏe.
Module 2 — Connect Your Identity Provider
Goal: Connect your company login system so Cloudflare knows who each user is and which groups they belong to. This is the foundation every later policy depends on.
👤 Who does this
IT / Identity administrator
⏱️ Time
~45 minutes
🎯 You'll finish with
Users able to sign in with their company account; the Test button showing their email + groups
✋ Before you begin
Admin access to your identity provider, and your team domain from Module 1
First: copy your callback URL
Every identity provider needs this one value from you. Write it down now (replace <team-name>):
You'll do this in two places: first in Microsoft's admin center, then in Cloudflare.
A1. Register an application in Microsoft Entra
👉 Open https://entra.microsoft.com and sign in with a Global Administrator account.
👉 In the left menu: Applications → Enterprise applications.
👉 Click + New application (top of the page).
👉 Click + Create your own application (top of the page).
📺 A panel opens on the right. ⌨️ Name it Cloudflare Access.
👉 Select the option "Register an application to integrate with Microsoft Entra ID (App you're developing)".
⚠️ Watch out: Do not pick a gallery/SaaS app — you're registering your own.
👉 Click Create.
📺 What you'll see: A "Register an application" page with a Redirect URI section.
👉 Under Redirect URI, set the platform dropdown to Web.
✅ Checkpoint: You're now on the app's Overview page.
A2. Copy three values
On the app Overview page:
📋 Copy Application (client) ID → save it.
📋 Copy Directory (tenant) ID → save it.
Now create the secret:
3. 👉 Left menu of the app → Certificates & secrets → Client secrets tab → + New client secret.
4. ⌨️ Description: Cloudflare. Set an expiry (e.g. 24 months).
5. 👉 Click Add.
6. 📋 Immediately copy the secret Value (not the "Secret ID") → save it.
⚠️ Watch out: The secret Value is shown only once. If you navigate away, you must delete it and make a new one. Also, when it expires, all logins stop — set a calendar reminder to renew before the expiry date.
A3. Grant permissions (so Cloudflare can read groups)
👉 Left menu of the app → API permissions → + Add a permission.
👉 Choose Microsoft Graph → Delegated permissions.
⌨️ Search for and tick each of these seven permissions:
Permission
Why
email
The user's email
offline_access
Keeps sessions refreshed
openid
Standard sign-in
profile
Basic profile info
User.Read
Read the signed-in user
Directory.Read.All
Read your directory
GroupMember.Read.All
Read group membership (needed for group rules)
👉 Click Add permissions.
👉 Click Grant admin consent for [your org] → Yes.
✅ Checkpoint: All seven permissions show "Granted for [your org]" with green checkmarks.
A4. Add Entra ID to Cloudflare
👉 Go to the Zero Trust dashboard (https://one.dash.cloudflare.com).
👉 Settings → Authentication (you may see it as Integrations → Identity providers).
👉 Under Login methods, click Add new.
👉 Select Azure AD (Microsoft Entra ID).
⌨️ Fill in:
Field
Paste
Application (client) ID
from A2
Application (client) Secret
the secret Value from A2
Directory (tenant) ID
from A2
👉 Turn on these options:
✅ Support Groups (so Cloudflare reads Entra groups)
✅ Proof Key for Code Exchange (PKCE)
✅ Enable SCIM (recommended — auto-syncs users/groups and can revoke access when someone is disabled)
👉 Click Save.
✅ Checkpoint: "Azure AD" now appears in your list of login methods. Now jump to Part E — Test.
👉 Under Assignments, choose who can use it (e.g. "Allow everyone in your organization"), then Save.
B2. Copy two values
On the app's General tab:
📋 Copy Client ID.
📋 Copy Client secret.
📝 Note your Okta domain (the URL you log in at, e.g. https://my-company.okta.com).
B3. Add Okta to Cloudflare
👉 Zero Trust → Settings → Authentication → Add new → Okta.
⌨️ Fill in:
Cloudflare field
Value
App ID
Okta Client ID
Client secret
Okta Client secret
Okta account URL
https://my-company.okta.com
👉 Turn on Support Groups if you'll use group-based rules.
👉 Click Save.
⚠️ Watch out: If your org has more than 100 Okta groups, you must also create a read-only Okta API token and paste it in, or group lookups will fail. (Okta admin → Security → API → Tokens → Create Token.)
✅ Checkpoint: "Okta" appears in your login methods. Now go to Part E — Test.
Part C — Google Workspace
C1. Create OAuth credentials in Google
👉 Open https://console.cloud.google.com → select or create a project.
👉 Zero Trust → Settings → Authentication → Add new.
👉 Choose Google (for any Gmail) or Google Workspace (for your company domain + groups).
⌨️ Paste the Client ID and Client secret.
For Google Workspace (to read groups): follow the on-screen prompt to provide your admin email / domain so Cloudflare can read group membership.
👉 Click Save.
✅ Checkpoint: "Google Workspace" appears in your login methods. Now go to Part E — Test.
Part D — No corporate IdP yet?
You can still proceed and connect a real IdP later.
Cloudflare is the default login for new accounts — users sign in with a Cloudflare account.
Or add One-time PIN (OTP): Zero Trust → Settings → Authentication → Add new → One-time PIN. Users get a code by email. Good for contractors and quick testing.
💡 Tip: Keep OTP or Cloudflare login enabled as a backup even after you add your corporate IdP — it's your safety net if the SSO connection ever breaks.
Part E — Test your connection (everyone does this)
👉 In Settings → Authentication → Login methods, find your provider in the list.
👉 Click the provider, then click the Test button.
📺 What you'll see: A new tab opens, runs a real login against your provider, and then shows a success page listing the identity Cloudflare received — the user's email and (importantly) their groups.
✅ Checkpoint — this is the key moment:
✅ Login succeeds.
✅ The result shows your email.
✅ The result shows your groups (e.g. Engineering, Finance).
⚠️ If groups are missing: your group permissions/claims aren't set. Go back to your provider:
Entra ID: confirm GroupMember.Read.All was added and admin consent granted (Step A3), and Support Groups is on in Cloudflare (A4).
Okta: enable a groups claim, and add the API token if you have >100 groups.
Google: make sure you chose Google Workspace (not plain Google) and provided admin/domain access.
Without groups in this test, your group-based access rules in later modules will not match. Fix this before continuing.
Rule group có thể gom device posture và email, hoặc tham chiếu group IdP — dễ maintain hơn rule từng user.Rule groups can combine device posture and emails, or reference an IdP group — easier to maintain than per-user rules.Rule groups can combine device posture and emails, or reference an IdP group — easier to maintain than per-user rules.
Ví dụ chính thức từ Cloudflare Resources — gợi ý theo chủ đề bài học trong lộ trình này.Official examples from Cloudflare Resources — matched to this lesson within this path.Official examples from Cloudflare Resources — matched to this lesson within this path.
TutorialTutorialTutorialCloudflare OneCloudflare OneCloudflare One
Microsoft Entra ID (trước đây là Azure Active Directory) tính toán mức độ rủi ro của người dùng dựa trên khả năng tài khoản của họ đã bị xâm phạm. Với Cloudflare Zero Trust, bạn có thể đồng bộ hóa danh sách người dùng rủi ro Entra ID với Cloudflare Access và áp dụng chính sách Zero Trust nghiêm ngặt hơn cho người dùng có nguy cơ cao hơn.
Microsoft Entra ID (formerly Azure Active Directory) calculates a user's risk level based on the probability that their account has been compromised. With Cloudflare Zero Trust, you can synchronize the Entra ID risky users list with Cloudflare Access and apply more stringent Zero Trust policies to users at higher risk.
Microsoft Entra ID (ប្រហែលជា Azure Active Directory) បានកំណត់កម្រិតសុវត្ថិភាពរបស់អ្នកដោយផ្អែកលើសមត្ថភាពដែលប្រហែលជាប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែលប្រហែល។ ជាមួយនឹងការ Cloudflare Zero Trust អ្នកអាចប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រៀបធៀបប្រ
Hướng dẫn này bao gồm cách tích hợp Cloudflare Access với Okta. Nó cũng bao gồm các bước để thiết lập Cloudflare Access và tích hợp Okta với Zero Trust.
This tutorial covers how to Integrate Cloudflare Access with Okta. It also covers the steps to set up Cloudflare Access and integrate Okta with Zero Trust.
Hướng dẫn này sẽ hướng dẫn bạn mở rộng khả năng đăng ký đơn (SSO) của Cloudflare Access với nền tảng máy tính không máy chủ của chúng tôi, Cloudflare Workers.
This tutorial will walk you through extending the single-sign-on (SSO) capabilities of Cloudflare Access with our serverless computing platform, Cloudflare Workers.
Học xong hoặc muốn đổi hướng?Finished or want a different path?Finished or want a different path?
Ba lộ trình độc lập — mỗi lộ trình chỉ gồm bài học và tài liệu trong phạm vi đó. Chọn lộ trình khác khi sẵn sàng, không cần học song song.Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel.Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel.