Skip to content

access token was not provided when running opal-client #119

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

You must be logged in to vote

Ok, i got it:

Your client token is what identifies you against OPAL server, not against the data-source server (the server that is serving the data source entry).

In your case, you are using the example data sources (which are served by the OPAL server directly), thus the data source server is also the OPAL server in your case.

Assuming your OPAL_CLIENT_TOKEN is eyJ0...8wsk, you need to pass the following OPAL_DATA_CONFIG_SOURCES:

instead of:

export OPAL_DATA_CONFIG_SOURCES='{"config":{"entries":[{"url":"http://localhost:7002/policy-data","topics":["policy_data"]}]}}'

you should pass:

export OPAL_DATA_CONFIG_SOURCES='{"config":{"entries":[{"url":"http://localhost:7002/policy-data","confi…

Replies: 10 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by asafc
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #118 on August 03, 2021 08:05.