Skip to content

Refreshing Tokens for Data Sources #96

Answered by asafc
amrap030 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @amrap030, great questions! Let's tackle them one-by-one.

TL;DR

OPAL cannot currently support refresh tokens natively, however there is a solution - redirecting to external data sources.

  1. For dynamic data updates - there is no need for refresh tokens - you may use short lived tokens with no issue.
  2. For data updates initiated by the client, the server will decide on the contents of the updates based on OPAL_DATA_CONFIG_SOURCES which is encoded into an env var - therefore you must use long lived tokens - which violates your requirement. However, OPAL_DATA_CONFIG_SOURCES can redirect to an external data source served by your backend, and this backend can generate short lived tokens on the …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by amrap030
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants