# OAuth 2.0 & OpenID Connect

> What is the difference between OAuth 2.0 and OpenID Connect? Walk through the Authorization Code flow with PKCE.

Canonical: https://www.internhack.in/learn/interview/web-security/security-oauth2-flows
Last updated: 2026-11-28

Difficulty: Advanced

## Question

What is the difference between OAuth 2.0 and OpenID Connect? Walk through the Authorization Code flow with PKCE.

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

OAuth 2.0, OpenID Connect, Authorization Code Flow, PKCE, ID Token, Scopes

Previous: [Bcrypt: Salt & Cost](https://www.internhack.in/learn/interview/web-security/security-bcrypt-salting-work-factor) · Next: [Session Fixation](https://www.internhack.in/learn/interview/web-security/security-session-fixation) · [All of Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)

## More Web Security (OWASP, JWT, XSS, CSRF) questions

- [SSRF (Server-Side Request Forgery)](https://www.internhack.in/learn/interview/web-security/security-ssrf-vulnerability)
- [Clickjacking](https://www.internhack.in/learn/interview/web-security/security-clickjacking-protection)
- [Sanitizing vs. Validating](https://www.internhack.in/learn/interview/web-security/security-sanitizing-inputs)
- [Broken Access Control](https://www.internhack.in/learn/interview/web-security/security-broken-access-control)
- [Password Complexity](https://www.internhack.in/learn/interview/web-security/security-password-complexity)
- [DoS vs. DDoS](https://www.internhack.in/learn/interview/web-security/security-dos-vs-ddos)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)
