Sign in with ChatGPT (OAuth) for chat, using the open source app access

Abierto
#175 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript, python

Línea de trabajo

Start by reading the OpenRouter PKCE exchange and OpenAI provider handling in web/src/acb_large_print_web/aa_ask.py, then compare the sign-in section in web/src/acb_large_print_web/static/accessibility-agents-ask.js and its template in web/src/acb_large_print_web/templates/accessibility_agents.html. Verify the current OpenAI OAuth scopes, plan access rules, branding, and token requirements against official documentation before estimating the implementation. Done means sign-in, account display, sign-out, API-key fallback, and the listed accessibility behaviors work on the chat page.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Summary

Let users sign in with their ChatGPT account (OAuth) to use GLOW's chat, so their requests run on the ChatGPT plan they already have. OpenAI announced Sign in with ChatGPT at Dev Day, and open source apps can use the plan usage option through self-serve access now. GLOW is open source, so we qualify.

Today OpenAI users have to create an API key, set up API billing, and paste the key. That is a real barrier, especially for screen reader users.

What Sign in with ChatGPT offers

These details come from coverage of the Dev Day announcement. Check them against OpenAI's official docs before building.

  • OAuth 2.0 and OpenID Connect sign-in with a ChatGPT account.
  • Two permission levels: identity only, and plan usage, where the app's AI calls count against the user's ChatGPT plan.
  • Open source projects get self-serve access to plan usage. Commercial apps go through a waitlist.

Proposal

  • Register GLOW as an open source app with OpenAI and request plan usage access.
  • Add a "Sign in with ChatGPT" button when the OpenAI provider is selected, next to the key field.
  • Follow the same approach as our existing OpenRouter sign-in (OAuth PKCE): no secrets stored on our server, and pasting an API key still works as a fallback.
  • Show which account is signed in and give a clear Sign out button.
  • Confirm OpenAI's rules for scopes, models, rate limits, branding, and token handling.

Relevant code

  • web/src/acb_large_print_web/aa_ask.py (the OpenRouter PKCE exchange and the openai provider)
  • web/src/acb_large_print_web/static/accessibility-agents-ask.js (OpenRouter sign-in section)
  • web/src/acb_large_print_web/templates/accessibility_agents.html (aa-openrouter-signin)

Accessibility requirements

  • The sign-in button has a clear label and help text linked with aria-describedby.
  • Sign-in success, failure, and sign out are announced in a status message.
  • After the sign-in window closes, focus goes back to a sensible place.
  • Works with VoiceOver, NVDA, and keyboard only, and meets WCAG 2.2 AA.

Related

#174 moves chat to its own page. This sign-in should live on that page.

Lenguaje dominante
Python
Estrellas
4
Forks
1
Merge medio
1 h 2 min
PR fusionados (30 d)
43

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Community-Access/glow

Todos los issues de Community-Access/glow

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.