UI Forwarding Expired Tokens to Codec Server
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 431
- Forks
- 179
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 71
Description
Describe the bug
Temporal UI is setup with a codec server and to forward the user access token the ui has. It seems that temporal has a token with a pretty short lifespan. When the token is forwarded to our codec server, and then that codec server validates it with the issuer, it receives the error that the token has expired.
To Reproduce
- Setup Temporal Web With OIDC (were using v2.21.3)
- Setup Codec Server With OIDC validation against the issuer
- Log into Temporal web.
- Validate that the new token does work and decodes workflows.
- Wait for token to expire (aprox 30min)
- Note that temporal web does not request a new login.
- Try to view an encoded workflow.
- Note errors.
- Manually hit the log out button in web ui.
- Refresh page.
- Note decoding is now working.
Expected behavior
For temporal to get a new valid token and forward that to the codec server when needed.
Screenshots
Desktop (please complete the following information):
- OS: [e.g. iOS]
Windows 11 - Browser [e.g. chrome, safari]
Chrome 120 - Version [e.g. 22]
Additional context
Okta is the issuer we use.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Trace the UI's OIDC token lifecycle and the request path that forwards credentials to the codec server. Reproduce the failure after the approximately 30-minute token lifetime, then verify that viewing an encoded workflow continues to work without manually logging out and back in.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- authentication, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100