CodeGym
AI Academy
Promozione
CodeGym University
Learning
Corsi
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Tema chiaro

Lezioni

  • Recensioni
  • Chi siamo
Inizia
Inizia a imparare
Start learning now
  • I miei progressi
  • Corsi
  • Mappa Quest
  • Lezioni
  • Perché serve l’autenticazione in ChatGPT App e breve evoluzione di OAuth

    ChatGPT Apps
    Livello 10,Lezione 0
    Analizziamo perché l’utente in ChatGPT non è uguale all’utente del tuo servizio, perché una ChatGPT App e un server MCP hanno bisogno di un vero login OAuth, in cosa differiscono AuthN e AuthZ, perché l’approccio «un API key in .env» rompe personalizzazione e sicurezza, e come lo standard moderno OAuth 2.1 con PKCE (S256) si inserisce nel modello MCP: token, scopes, verifica di aud, e challenge tramite _meta [ "mcp/www_authenticate" ].
    Disponibile
  • Architettura dell’autorizzazione MCP: MCP Client, MCP Server, MCP Auth Server

    ChatGPT Apps
    Livello 10,Lezione 1
    In questa lezione mettiamo a fuoco il “triangolo della fiducia” tra MCP Client (ChatGPT/Apps SDK), MCP Server (il vostro server di risorse con strumenti) e MCP Auth Server (Keycloak/Auth0 ecc.). Analizziamo il flusso OAuth completo: da 401 e WWW-Authenticate fino al token Bearer, PKCE e chiamate protette degli strumenti MCP; inoltre mostriamo come le claim ( sub, aud, scope) si trasformano nello userId del vostro DB tramite un identity bridge.
    Disponibile
  • Configurazione del server di autenticazione MCP: esempio con Keycloak

    ChatGPT Apps
    Livello 10,Lezione 2
    In questa lezione, con l’esempio pratico di Keycloak, costruiamo l’autenticazione OAuth/OIDC per uno scenario MCP: analizzeremo i ruoli di ChatGPT / MCP Jam (public client), del tuo server MCP (resource server) e di Keycloak (auth server), imposteremo un realm dedicato per l’applicazione, creeremo un public client con Authorization Code + PKCE ( S256), imposteremo con attenzione il redirect URI, gli scope minimi (ad esempio, openid e mcp:tools) e discuteremo anche di token, claim, JWKS ed errori tipici di integrazione.
    Disponibile
  • Configurare MCP Server come risorsa protetta: .well-known, Bearer, audience/scope

    ChatGPT Apps
    Livello 10,Lezione 3
    Vediamo come trasformare un MCP‑server in un OAuth 2.1 Resource Server: pubblichiamo i metadati tramite /.well-known/oauth-protected-resource (RFC 9728), rispondiamo correttamente con 401 e WWW-Authenticate: Bearer, verifichiamo localmente i JWT (firma, iss, aud, exp), estraiamo sub e scope e passiamo all’MCP SDK un contesto utente già “pronto”. Mostriamo un’implementazione con Next.js 16 e TypeScript (Route Handlers + jose).
    Disponibile
  • Test del login e dell’accesso tramite MCP Jam: None, Bearer, OAuth with credentials, Default OAuth

    ChatGPT Apps
    Livello 10,Lezione 4
    In questa lezione analizzerai MCP Jam come «laboratorio» per il debug dell’autorizzazione di un server MCP: in cosa differiscono le modalità None, Bearer, OAuth with credentials e Default OAuth, cosa invia esattamente Jam nelle richieste (ad esempio, l’header Authorization), come leggere le risposte 401/ 403, perché è fondamentale WWW-Authenticate con resource_metadata e come diagnosticare i malfunzionamenti tra MCP Server, Auth Server e il documento /.well-known/oauth-protected-resource.
    Disponibile
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGymCodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning, and a Java developer’s career.
Follow us
Lingua dell'interfaccia
English Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ்
Italiano
Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
"Programmers Are Made, Not Born" © 2026 CodeGym
MastercardVisa
"Programmers Are Made, Not Born" © 2026 CodeGym