Cyberlium
Cyberlium
Cyberlium on Android·Google Play Store

Learn cybersecurity with hands-on labs and AI mentor support on your phone.

Mod 5 · Les 1/5
In progress
Module 5•Lesson 1 of 5•⏱️ 15 min read•Beginner+39 XP

OAuth Roles: Client Resource Owner AS

Four roles, one trust story — map them on 127.0.0.1:8814.

OAuth Roles: Client Resource Owner AS
00:00/03:19

Visual · oauth_roles

Resource owner, client, authorization server, resource server. 127.0.0.1:8814.

OAuth is delegation with named roles — not a license to build fake login pages.

OAuth 2.0 separates the resource owner (user), client (app), authorization server (issues tokens), and resource server (API). Confusion among roles is how phishing kits pretend to be the AS. Cyberlium teaches names and trust boundaries on YOUR lab — never impostor consent screens aimed at humans. Dest 127.0.0.1:8814. Next: OAuth Flows Named.

1. Name the four roles without mixing them

Resource owner grants. Client requests. Authorization server authenticates the owner and issues tokens. Resource server accepts access tokens and serves data.

Your teaching API on 8814 may play resource server; a tiny lab AS may issue tokens. Both stay on 127.0.0.1.

Command guide

Try these commands — Name the four roles without mixing them

═══ TOOLS & WEBSITES ═══ Browse / read these (authorized learning only — stay in YOUR lab / program scope)

OAuth 2.0 roles — https://oauth.net/2/ (resource owner, client, auth server) Auth0 flows — https://auth0.com/docs/get-started/authentication-and-authorization-flow

═══ INSTALL ═══

Linux (Debian/Ubuntu):

Command — copy this

sudo apt install curl

macOS: Built-in

Windows: Built-in (PowerShell: Invoke-WebRequest)

═══ LINUX / macOS ═══

SAFE demo: query params visible to server (httpbin is intentional practice)

Command — copy this

curl -sS "https://httpbin.org/get?client_id=lab-client&response_type=code&scope=openid" | jq '.args'
curl -sS -o /dev/null -w "httpbin GET %{http_code}
" "https://httpbin.org/get?state=lab-csrf-token"

Primary tools to practice this lesson: curl. Reference sites: OAuth 2.0 roles (https://oauth.net/2/); Auth0 flows (https://auth0.com/docs/get-started/authentication-and-authorization-flow). Run every command in the box — install first, then the usage lines — only on YOUR lab / program scope.

2. Delegation is not password sharing

OAuth exists so the client does not store the owner’s password for the AS. If a “kit” asks users to type passwords into the client directly while painting the AS logo, that is phishing theater — refuse it.

Write a one-line refusal: no fake Google/GitHub login pages in this course.

3. Ethics wall

Do not register OAuth apps against providers to harvest classmates. Do not run reverse proxies that steal auth codes on café Wi-Fi.

Ship a roles diagram in text. Quiz will ask who issues tokens.

4. What you ship: a four-role map and a phishing-kit refusal

Roles named. AS vs RS clear. Refusal of fake login kits. Dest 127.0.0.1:8814. DEMO GATE.

5. What you record before the next lesson

Date. Roles note. NEVER phishing OAuth. File t13-m05-l01-oauth-roles.txt chmod 600.

6. Wrong vs right: stranger APIs vs literacy on systems you own

Worked failure — same API word, opposite target. Right never needs a live shop or classmate token.

  • Wrong: Deploy a cloned Google login. Steal auth codes on LAN. hydra the AS.
  • Right: Roles map + refusal. Next: OAuth Flows Named.
Hands-on Exercise

Mission: name OAuth roles without impostors

1) / STOP if router. 2) Write four roles and who issues tokens. 3) Write phishing-kit refusal. Never fake consent pages.

Pro Tip

Stuck? Ask Cyberlium AI Mentor

Ask Mentor for a roles diagram check — not for phishing page HTML.

Practice QuizQuestion 1
Multiple choice
Q1

APPLY: Who issues access tokens in OAuth?

Practice QuizQuestion 2
True or False
Q2

APPLY: True or False: A fake Google login page is acceptable “OAuth practice.”

Practice QuizQuestion 3
Multiple choice
Q3

APPLY: Module 5 teaching port?

←Previous: Quiz — JWT Pitfalls
Answer 3 practice quiz questions to unlock XP reward. (0/3 answered)
Skip quiz & read next →