nextcloud / integration_mattermost

Mattermost integration in Nextcloud
GNU Affero General Public License v3.0
19 stars 6 forks source link

Wrong token URL #6

Closed flyinva closed 2 years ago

flyinva commented 2 years ago

Plugin uses this url for token access

$url = $url . '/oauth/access_token';

Framapiaf server uses https://framapiaf.org/oauth/token. I've changed url to $url = $url . '/oauth/token'; to connect to Framapiaf server.

julien-nc commented 2 years ago

Thanks for the issue.

Do you know which version of Mattermost is used by Framapiaf? So far I've tested the integration with Mattermost 6.3.8.

I'll try 7.4 soon.

julien-nc commented 2 years ago

Tested with Mattermost 7.4.0: It works fine using oauth/access_token.

Either Framapiaf uses a very old Mattermost version or there is some customization involved.

julien-nc commented 2 years ago

Hmmm it just hit me: Framapiaf is a Mastodon instance, not a Mattermost one :grin:. It would have been weird that different Mattermost versions would use different OAuth endpoints.

Feel free to reopen if needed.