start working on oauth2 implementation

This commit is contained in:
tsmethurst
2021-03-14 17:56:16 +01:00
parent 77f2a27b23
commit 772f6e5949
6 changed files with 657 additions and 23 deletions

View File

@ -24,6 +24,7 @@ import (
"strings"
"github.com/go-fed/activity/pub"
"github.com/go-oauth2/oauth2/v4"
"github.com/gotosocial/gotosocial/internal/config"
"github.com/sirupsen/logrus"
)
@ -39,6 +40,11 @@ type DB interface {
*/
pub.Database
/*
OAUTH2 DATABASE FUNCTIONS
*/
TokenStore() oauth2.TokenStore
/*
ANY ADDITIONAL DESIRED FUNCTIONS
*/