JWT iat claim may cause "token used before issue"
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- csharp
- Ambito
- api, authentication
Direzione di ricerca
Start at the userClient.CreateToken call shown in the issue and trace how the issuedAt value becomes the JWT iat claim. Reproduce the failure with a manually supplied issuedAt value, then identify whether the client library or Stream Chat server validation is responsible. Done means the reported authentication failure is resolved or clearly documented with a verified regression test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When manually setting the issuedAt (iat) claim in Stream Chat JWT tokens, authentication can fail with:
userClient.CreateToken(
userId: command.UserId.ToString(),
expiration: DateTimeOffset.UtcNow.AddMinutes(streamChatConfiguration.TokenLifetimeMinutes),
issuedAt: DateTimeOffset.UtcNow);
I suspect this issue may be related to the lack of clock skew tolerance on the server side or a similar strict validation mechanism.
- Lingua principale
- C#
- Stelle
- 75
- Fork
- 14
- Merge medio
- 5g 22h
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di GetStream/stream-chat-net
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
GetStream/stream-chat-net#145 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
GetStream/stream-chat-net#132 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
GetStream/stream-chat-net#130 ·
Tutte le issue di GetStream/stream-chat-net
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
README says main uses .NET 9 while the current branch targets .NET 10Forse già presa @dajiaohuang l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
ardalis/CleanArchitecture#1098 ·
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
madeyoga/AuthEndpoints#365 ·
I maintainer di solito rispondono entro 1 giorno
-
ConnectionOpened reports pre-redirect URL when OnConnectingAsync changes the targetForse già presa @akashchamp l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
majorsilence/Reporting#493 ·
I maintainer di solito rispondono entro 1 giorno