asgardeo / asgardeo/javascript

React app login with code grant silently fails when public client option is not enabled

Abierto
#508 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Severity/Major Type/Bug
Lenguaje dominante
TypeScript
Estrellas
18
Forks
67
Merge medio
4 h 6 min
PR fusionados (30 d)
13

Descripción

### Description

When the code grant is enabled without the public client option is enabled, the react application login silently fails because the token calls sent after the user is authenticated fails with the following error. Initiating signing in again in the same tab also redirects the user to same callback URL.

### Steps to Reproduce

The following screencast shows this erroneous behaviour.

https://github.com/user-attachments/assets/5f73e716-603f-4885-a764-9b775005342a

### Please select the area the issue is related to

@asgardeo/express, @asgardeo/react

### Version

latest

### Environment Details (with versions)

_No response_

### Reporter Checklist

- [x] I have searched the existing issues and this is not a duplicate.
- [x] I have provided all the necessary information.
- [x] I have tested the issue on the latest version of the package.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Empieza reproduciendo el fallo mostrado en el screencast con los paquetes @asgardeo/express y @asgardeo/react, y después rastrea las llamadas de login y token realizadas tras la autenticación. Se considera completado cuando el login tiene éxito al habilitar code grant sin la opción public client, y volver a iniciar sesión en la misma pestaña no redirige a la misma URL de callback.

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

Evaluación

Stack tecnológico
react, typescript
Área
authentication, frontend
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.