asgardeo / asgardeo/javascript
React app login with code grant silently fails when public client option is not enabled
- Vorherrschende Sprache
- TypeScript
- Sterne
- 18
- Forks
- 67
- Ø Merge
- 4 Std. 6 Min.
- Gemergte PRs (30 T.)
- 13
Beschreibung
### 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.
Beitragsleitfaden
Rechercherichtung
Beginne damit, den im Screencast gezeigten Fehler mit den Paketen @asgardeo/express und @asgardeo/react zu reproduzieren, und verfolge anschließend die nach der Authentifizierung ausgeführten Login- und Token-Aufrufe. Als erledigt gilt die Aufgabe, wenn der Login erfolgreich ist, sobald code grant ohne die Option public client aktiviert ist, und eine erneute Anmeldung im selben Tab nicht zur selben Callback-URL weiterleitet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- react, typescript
- Bereich
- authentication, frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100