mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-18 01:35:36 +01:00
[#3364] added mailcow OAuth2 provider
Co-authored-by: thisni1s <nils@jn2p.de>
This commit is contained in:
1 parent
69983bff5e
commit
01e33c07fe
45 files changed
+3332
-3219
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package auth
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
|
||||
"golang.org/x/oauth2"
|
||||
@@ -22,6 +23,7 @@ type Yandex struct {
|
||||
// Docs: https://yandex.ru/dev/id/doc/en/
|
||||
func NewYandexProvider() *Yandex {
|
||||
return &Yandex{&baseProvider{
|
||||
ctx: context.Background(),
|
||||
scopes: []string{"login:email", "login:avatar", "login:info"},
|
||||
authUrl: yandex.Endpoint.AuthURL,
|
||||
tokenUrl: yandex.Endpoint.TokenURL,
|
||||
|
||||
Reference in new issue
Block a user