From 314ee5b92bf23c4973aa8e61eba3ff458e80eef2 Mon Sep 17 00:00:00 2001 From: GHOST Date: Mon, 3 Feb 2025 18:28:31 +0000 Subject: [PATCH] endpoints: add patreon endpoint Adds the patreon endpoints from their documentation. https://docs.patreon.com/#oauth. I've tested these thoroughly whilst making a pr to pocketbase. https://github.com/pocketbase/pocketbase/pull/3323. Change-Id: I023871a4340ee4ebcba9fd808d4a8f0c081fc10e GitHub-Last-Rev: 890ef056bd78d109e0ecc464263f9e85586e3f7d GitHub-Pull-Request: golang/oauth2#668 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/528640 Reviewed-by: Cherry Mui Reviewed-by: Carlos Amedee Reviewed-by: Jorropo Auto-Submit: Jorropo LUCI-TryBot-Result: Go LUCI --- endpoints/endpoints.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/endpoints/endpoints.go b/endpoints/endpoints.go index 950754c..0d8cf64 100644 --- a/endpoints/endpoints.go +++ b/endpoints/endpoints.go @@ -146,6 +146,12 @@ var Odnoklassniki = oauth2.Endpoint{ TokenURL: "https://api.odnoklassniki.ru/oauth/token.do", } +// Patreon is the endpoint for Patreon. +var Patreon = oauth2.Endpoint{ + AuthURL: "https://www.patreon.com/oauth2/authorize", + TokenURL: "https://www.patreon.com/api/oauth2/token", +} + // PayPal is the endpoint for PayPal. var PayPal = oauth2.Endpoint{ AuthURL: "https://www.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize",