Skip to content

UI Forwarding Expired Tokens to Codec ServerΒ #1774

@bmayfi3ld

Description

@bmayfi3ld

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

  1. Setup Temporal Web With OIDC (were using v2.21.3)
  2. Setup Codec Server With OIDC validation against the issuer
  3. Log into Temporal web.
  4. Validate that the new token does work and decodes workflows.
  5. Wait for token to expire (aprox 30min)
  6. Note that temporal web does not request a new login.
  7. Try to view an encoded workflow.
  8. Note errors.
  9. Manually hit the log out button in web ui.
  10. Refresh page.
  11. 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
image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions