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

csrf #13

Closed
felixlohmeier opened this issue Mar 30, 2022 · 0 comments · Fixed by #17
Closed

csrf #13

felixlohmeier opened this issue Mar 30, 2022 · 0 comments · Fixed by #17
Assignees
Labels
enhancement New feature or request

Comments

@felixlohmeier
Copy link
Member

  • remove OPENREFINE_CSRF env in bashly.yml
  • improve src/lib/get_csrf.sh
    if ! [[ "${response}" == '{"token":"'* ]]; then
      local version
      version=$(curl -fs http://localhost:3333/command/core/get-version | jq -r '.version' | cut -c 1-3)
    
    • error "no OpenRefine reachable/running at ${OPENREFINE_URL}" if $version is blank
    • pass if $version is in 3.2 3.1 3.0 2.8 2.7
    • else error "getting CSRF token failed!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging a pull request may close this issue.

1 participant