codifyglobal / peertube-plugin-auth-oauth2

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

example #3

Open reesericci opened 3 years ago

reesericci commented 3 years ago

Can I please have some example integration with various oauth providers?

reesericci commented 3 years ago

I'm trying to integrate with discord

aadityaverma commented 3 years ago

trying to use Memberful, please any example will help

maeries commented 2 years ago

I second this. Or even better make the plugin autofil as many fields as possible for common providers. Most tools only need the client ID and client secret to make google oauth work

maeries commented 2 years ago

Got it working using this

Setting Required? Description Values for Google
Provider display name The text that is displayed in a button next to the login form.
Client ID yes The client id string assigned to you by the provider.
Client secret yes The client secret string assigned to you by the provider. \<random string>apps.googleusercontent.com
Domain yes The fully qualified domain name for the provider. example: auth.example.com /
Scope yes One or more Scope names separated by a single space. email openid profile
Authorize URL path yes The URL from the provider that signs the user in. example: /oauth2/authorize accounts.google.com/o/oauth2/auth
Token URL path yes The URL from the provider that gets the user's access tokens. example: /oauth2/token oauth2.googleapis.com/token
Identity URL path yes The URL from the provider that returns information about the authenticated user in a JSON format. example: /oauth2/userInfo www.googleapis.com/oauth2/v3/userinfo
Identity username field yes The name of the field that contains the user's username. Haven't found something useful yet
Identity email field yes The name of the field that contains the user's email. 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. yes
Identity access token URL parameter name The 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.