Skip to content

KOReader sync not working - Authentication error/redirecting to login page #1278

@disdyakis

Description

@disdyakis

Hey all, less of a bug and more of a question about what I'm doing wrong

I'm getting an authentication error on my ereader i'm setting up (xteink x3 running crosspoint) when trying to enable its built-in koreader sync

setup:

  • reverse proxy: duckdns -> home server -> docker (swag) -> cwa
  • the cwa instance is accessible from outside and inside my home network
  • I don't think I changed much from the default calibre-web.subdomain.conf.sample, other than specifying values

so far I've tried:

  • triple-checking the server url, username, and password were all correct (and i've tried with and without the trailing '/' in the url, just in case)
  • made sure "Enable KOReader Sync (CWA Plugin)" is enabled in settings
  • futzing with nginx settings

and this is what I get when curl-ing the endpoint in the way the reader does

$ curl -u $user:$pass -H "Accept: application/vnd.koreader.v1+json" -H "x-auth-user:$user" -H "x-auth-key:$md5pass" "https://books.<server-url>.com/users/auth/"
<!doctype html>
<html lang=en>
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to the target URL: <a href="/login?next=%2Fusers%2Fauth%2F">/login?next=%2Fusers%2Fauth%2F</a>. If not, click the link.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions