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

Cannot access API via curl #158

Open
rndmh3ro opened this issue Sep 26, 2023 · 0 comments
Open

Cannot access API via curl #158

rndmh3ro opened this issue Sep 26, 2023 · 0 comments

Comments

@rndmh3ro
Copy link
Contributor

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

  • Hardware: VPS bought online
  • yunohost-version: 11.2.4
  • I have access to my server: Through SSH

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant