1.0.0 • Published 4 years ago

@codifyglobal/peertube-plugin-auth-oauth2 v1.0.0

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
4 years ago

OAuth 2.0 server plugin for PeerTube

This PeerTube server plugin adds support to a PeerTube instance for external authentication via an OAuth 2.0 provider.

Dependencies

  • NodeJS >= 10.x
  • PeerTube >= 2.2.0

Plugin Settings

To activate the plugin, configure the following settings after installation:

SettingRequired?Description
Provider display nameThe text that is displayed in a button next to the login form.
Client IDyesThe client id string assigned to you by the provider.
Client secretyesThe client secret string assigned to you by the provider.
DomainyesThe fully qualified domain name for the provider. example: auth.example.com
ScopeyesOne or more Scope names separated by a single space.
Authorize URL pathyesThe URL from the provider that signs the user in. example: /oauth2/authorize
Token URL pathyesThe URL from the provider that gets the user's access tokens. example: /oauth2/token
Identity URL pathyesThe URL from the provider that returns information about the authenticated user in a JSON format. example: /oauth2/userInfo
Identity username fieldyesThe name of the field that contains the user's username.
Identity email fieldyesThe name of the field that contains the user's email.
Send identity token sent via HTTP header?Enable this setting to pass the access token using the Authorization header when requesting information about the authenticated user. Required for AWS Cognito.
Identity access token URL parameter nameThe URL parameter name used to pass the access token when requesting information about the authenticated user. Required if the access token is sent via the URL.

Note: The plugin will not function if the required settings are missing or if the settings for the provider are incorrect.

Troubleshooting Tips

Review the PeerTube logs for error messages related to this plugin.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.

1.0.0

4 years ago

0.0.0

4 years ago