Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix JWT error: not enough segments (replace api_key with jwt token) #240

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,16 @@ added to the `[app:main]` section of your CKAN configuration file :

ckan.datapusher.url = http://127.0.0.1:8800/

Must be also configured the authentication using jwt tokens, modifying the following CKAN configurations:

api_token.jwt.encode.secret = string:samerandomstring
api_token.jwt.decode.secret = string:samerandomstring

Then generating a new JWT token in the Administration section for the user default (the user with the same name of site_id)
which is used by datapusher and configuring the generated token with this configuration in the CKAN ini:

ckan.datapusher.token = adsadasdsads.sdsad____

There are other CKAN configuration options that allow to customize the CKAN - DataPusher
integation. Please refer to the [DataPusher Settings](https://docs.ckan.org/en/latest/maintaining/configuration.html#datapusher-settings) section in the CKAN documentation for more details.

Expand Down