Does PeerTube provides access to its content to other services as a Authorization Server though OAuth 2.0?

@Chocobozzz

hello,

Currently my organization is using multiple services which includes Mattermost as messaging platform and PeerTube as video sharing platform.

What I want do here is that, I want to provide access to my Mattermost channel to view certain videos and information of the PeerTube within mattemost configuring OAuth 2.0.

Is there any way PeerTube works as a Authorization server or any third party software through which we can achieve this?

I found two plugin auth-oauth2 and auth-oauth2-mastodon that provides oauth2 service but I think they only provides authentication not authorization.

Can this be achievable now or in the near future?