agates / peertube-plugin-auth-oauth2-mastodon

A PeerTube server plugin that adds support for external authentication via an OAuth 2.0 provider.
3 stars 1 forks source link

How properly set it for mastodon #5

Closed piotr-sikora-v closed 1 year ago

piotr-sikora-v commented 1 year ago

I have my mastodon istanace works with ouath with matrix, and I try usign this plugin to make same for Peertube but unfortunately I can't have this work. Screenshot 2023-07-23 at 22 58 56

After this settings when I click on "Pol.Social" login, then I see messege from mastdon:

{"error":"Access token is wrong"}

I set my client/secrte id by sending to my mastdodon instance this curl:

curl -d "client_name=peertube_pol_social&redirect_uris=https://tube.pol.social/plugins/auth-oauth2-mastodon/router/callback" -X POST https://pol.social/api/v1/apps 

Thanks in advance!

piotr-sikora-v commented 1 year ago

Ok I got this. Here is good settings for mastodon:

image