YunoHost-Apps / ttrss_ynh

Tiny Tiny RSS package for YunoHost
https://tt-rss.org/
GNU General Public License v3.0
17 stars 14 forks source link

Cannot access API via curl #158

Open rndmh3ro opened 1 year ago

rndmh3ro commented 1 year ago

Describe the bug

When trying to login to the API (according to https://tt-rss.org/wiki/ApiReference), I always get redirected to the SSO login:

curl -L -d '{"op":"login","user":"xx","password":"xx"}' http://example.com/tt-rss/api/

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>YunoHost Portal</title>

  <!-- Responsive -->
  <meta name="format-detection" content="telephone=no" />
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1" />

  <!-- Do not index SSOWat pages -->
  <meta name="robots" content="noindex, nofollow">

  <!-- Stylesheets -->
  <link rel="stylesheet" href="assets/css/ynh_portal.css">
  <link rel="stylesheet" href="assets/themes/default/custom_portal.css">

  <!-- Icons -->

Context

image

Steps to reproduce

curl -L -d '{"op":"login","user":"xx","password":"xx"}' http://example.com/tt-rss/api/

Expected behavior

I get a response from the API.