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

Add application token support #6756

Open
stemy2 opened this issue Dec 6, 2024 · 1 comment
Open

Add application token support #6756

stemy2 opened this issue Dec 6, 2024 · 1 comment

Comments

@stemy2
Copy link

stemy2 commented Dec 6, 2024

Describe the current behavior

Hello,

I can't use peertube-CLI anymore. No matter the command i ask, i get this:

stem@stem-kubuntu:~$ peertube-cli plugins list
Cannot list plugins: Expected status 200, got 401. 
The server responded: "Missing two factor header".
You may take a closer look at the logs. To see how to do so, check out this page: https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/development/tests.md#debug-server-logs
stem@stem-kubuntu:~$

My credentials are already in auth, and adding them in the command doesn't change anything.

Steps to reproduce

  1. Simply type peertube-cli command.

Describe the expected behavior

The action i asked is executed.

Additional information

  • PeerTube instance:

    • URL: video.stemy.xyz
    • Version: 6.3.3
    • NodeJS version: 18.19.0+dfsg-6~deb12u2
    • Ffmpeg version: 8:5.1.6-0+deb12u1+rpt1
  • Link to server log if relevant (journalctl or /var/www/peertube/storage/logs/):

Dec 06 13:43:07 stemy.xyz peertube[2139]: [video.stemy.xyz:443] 2024-12-06 13:43:07.241 info: 91.90.123.57 - - [06/Dec/2024:13:43:07 +0000] "GET /api/v1/oauth-clients/local HTTP/1.0" 200 99 "-" "-"
Dec/2024:13:43:07 +0000] "GET /api/v1/oauth-clients/>
Dec 06 13:43:08 stemy.xyz peertube[2139]: [video.stemy.xyz:443 peertube-plugin-auth-ldap] 2024-12-06 13:43:08.772 info: Do not login user root because admin did not configure LDAP.
Dec 06 13:43:08 stemy.xyz peertube[2139]: [video.stemy.xyz:443] 2024-12-06 13:43:08.895 info: 91.90.123.57 - - [06/Dec/2024:13:43:08 +0000] "POST /api/v1/users/token HTTP/1.0" 401 299 "-" "-"
@Chocobozzz Chocobozzz changed the title [peertube-CLI] Missing two factor header Add application token support Dec 9, 2024
@Chocobozzz
Copy link
Owner

Hi and thanks for the issue.

We need to add application token support in PeerTube, and use them in the CLI (instead of using username/password)

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

No branches or pull requests

2 participants